-
Notifications
You must be signed in to change notification settings - Fork 0
/
SFEbluefish.spec
114 lines (102 loc) · 3.33 KB
/
SFEbluefish.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#
# spec file for package SFEbluefish
#
# includes module(s): bluefish
#
%include Solaris.inc
Name: SFEbluefish
Summary: Bluefish, a powerful editor for experienced web designers.
Version: 1.0.7
Source: http://www.bennewitz.com/bluefish/stable/source/bluefish-%{version}.tar.bz2
URL: http://bluefish.openoffice.nl/index.html
Patch1: bluefish-01-timeval.diff
Patch2: bluefish-02-debug_func.diff
Patch3: bluefish-03-update-mime.diff
SUNW_BaseDir: %{_basedir}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
# Requires: SUNWpcre
# BuildRequires: SUNWpcre-devel
Requires: SUNWgnome-spell
Requires: SUNWgnome-libs
BuildRequires: SUNWgnome-libs-devel
Requires: SUNWlibC
%if %build_l10n
%package l10n
Summary: %{summary} - l10n files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%prep
%setup -q -n bluefish-%version
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
export CFLAGS="%optflags -I/usr/gnu/include -I/usr/sfw/include -DANSICPP"
export CPPFLAGS="-I/usr/sfw/include"
export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib -L/usr/gnu/lib -R/usr/gnu/lib"
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir}
make -j$CPUS
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
( echo 'test -x %{_bindir}/update-mime-database || exit 0';
echo '%{_bindir}/update-mime-database %{_datadir}/mime'
) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -u
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/application-registry
%{_datadir}/application-registry/*
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%{_datadir}/bluefish
%ghost %attr (0755, root, root) %{_datadir}/mime
%dir %attr (0755, root, other) %{_datadir}/mime-info
%{_datadir}/mime-info/*
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif
%changelog
* Wed Oct 17 2007 - laca@sun.com
- define l10n subpkg
* Tue Oct 16 2007 - laca@sun.com
- add /usr/gnu to search paths for the indiana build
* Thu Mar 29 2007 - daymobrew@users.sourceforge.net
- Change Requires of SUNWaspell to SUNWgnome-spell. Former has been obsoleted.
* Wed Jan 24 2007 - daymobrew@users.sourceforge.net
- s/SFEpcre/SUNWpcre/ because SUNWpcre is in Vermillion Devel.
* Fri Jan 07 2007 - daymobrew@users.sourceforge.net
- Bump to 1.0.7. Update source url.
* Mon Jun 12 2006 - laca@sun.com
- rename to SFEbluefish
- change to root:bin to follow other JDS pkgs.
* Mon Jan 30 2006 - glynn.foster@sun.com
- Initial version