3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
11 License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
15 Source0: %{name}-%{version}.tar.gz
19 #Patch0: %{name}-DESTDIR.patch
21 %if %{with initscript}
22 BuildRequires: rpmbuild(macros) >= 1.228
23 Requires(post,preun): /sbin/chkconfig
26 #BuildRequires: autoconf
27 #BuildRequires: automake
28 #BuildRequires: intltool
29 #BuildRequires: libtool
31 #Requires(pre,post): -
40 #ExclusiveArch: %{ix86}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 %description subpackage
54 %description subpackage -l pl
63 %description libs -l pl
67 Summary: Header files for ... library
68 Summary(pl): Pliki nag³ówkowe biblioteki ...
69 Group: Development/Libraries
70 #Requires: %{name} = %{version}-%{release}
73 This is the package containing the header files for ... library.
75 %description devel -l pl
76 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
79 Summary: Static ... library
80 Summary(pl): Statyczna biblioteka ...
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
87 %description static -l pl
88 Statyczna biblioteka ....
94 #%%setup -q -n %{name}-%{version}.orig -a 1
98 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
100 # remove CVS control files
101 #find -name CVS -print0 | xargs -0 rm -rf
104 # if ac/am/* rebuilding is necessary, do it in this order and add
105 # appropriate BuildRequires
113 #cp -f /usr/share/automake/config.sub .
118 # CFLAGS="%{rpmcflags}" \
119 # LDFLAGS="%{rpmldflags}"
122 rm -rf $RPM_BUILD_ROOT
123 # create directories if necessary
124 #install -d $RPM_BUILD_ROOT
125 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
128 DESTDIR=$RPM_BUILD_ROOT
131 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
146 %if %{with initscript}
148 /sbin/chkconfig --add %{name}
149 %service %{name} restart
152 if [ "$1" = "0" ]; then
153 %service -q %{name} stop
154 /sbin/chkconfig --del %{name}
159 %defattr(644,root,root,755)
160 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
163 # if _sysconfdir != /etc:
164 #%%dir %{_sysconfdir}
165 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
166 %attr(755,root,root) %{_bindir}/*
170 # initscript and its config
171 %if %{with initscript}
172 %attr(754,root,root) /etc/rc.d/init.d/%{name}
173 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
176 #%{_examplesdir}/%{name}-%{version}
178 %if %{with subpackage}
180 %defattr(644,root,root,755)
182 #%{_datadir}/%{name}-ext