3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
12 License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
14 Source0: %{name}-%{version}.tar.gz
18 #Patch0: %{name}-DESTDIR.patch
20 %if %{with initscript}
21 BuildRequires: rpmbuild(macros) >= 1.228
22 Requires(post,preun): /sbin/chkconfig
25 #BuildRequires: autoconf
26 #BuildRequires: automake
27 #BuildRequires: intltool
28 #BuildRequires: libtool
30 #Requires(pre,post): -
39 #ExclusiveArch: %{ix86}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %description subpackage
53 %description subpackage -l pl
62 %description libs -l pl
66 Summary: Header files for ... library
67 Summary(pl): Pliki nag³ówkowe biblioteki ...
68 Group: Development/Libraries
69 #Requires: %{name} = %{version}-%{release}
72 This is the package containing the header files for ... library.
74 %description devel -l pl
75 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
78 Summary: Static ... library
79 Summary(pl): Statyczna biblioteka ...
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
86 %description static -l pl
87 Statyczna biblioteka ....
93 #%%setup -q -n %{name}-%{version}.orig -a 1
97 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
99 # remove CVS control files
100 #find -name CVS -print0 | xargs -0 rm -rf
102 # you'll need this if you cp -a complete dir in source
103 # cleanup backups after patching
104 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
107 # if ac/am/* rebuilding is necessary, do it in this order and add
108 # appropriate BuildRequires
116 #cp -f /usr/share/automake/config.sub .
121 # CFLAGS="%{rpmcflags}" \
122 # LDFLAGS="%{rpmldflags}"
125 rm -rf $RPM_BUILD_ROOT
126 # create directories if necessary
127 #install -d $RPM_BUILD_ROOT
128 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
131 DESTDIR=$RPM_BUILD_ROOT
134 rm -rf $RPM_BUILD_ROOT
145 %post -p /sbin/ldconfig
146 %postun -p /sbin/ldconfig
149 %if %{with initscript}
151 /sbin/chkconfig --add %{name}
152 %service %{name} restart
155 if [ "$1" = "0" ]; then
156 %service -q %{name} stop
157 /sbin/chkconfig --del %{name}
162 %defattr(644,root,root,755)
163 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
166 # if _sysconfdir != /etc:
167 #%%dir %{_sysconfdir}
168 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
169 %attr(755,root,root) %{_bindir}/*
173 # initscript and its config
174 %if %{with initscript}
175 %attr(754,root,root) /etc/rc.d/init.d/%{name}
176 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
179 #%{_examplesdir}/%{name}-%{version}
181 %if %{with subpackage}
183 %defattr(644,root,root,755)
185 #%{_datadir}/%{name}-ext