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)
13 Source0: %{name}-%{version}.tar.gz
17 #Patch0: %{name}-DESTDIR.patch
19 %if %{with initscript}
20 BuildRequires: rpmbuild(macros) >= 1.228
21 Requires(post,preun): /sbin/chkconfig
24 #BuildRequires: autoconf
25 #BuildRequires: automake
26 #BuildRequires: intltool
27 #BuildRequires: libtool
29 #Requires(pre,post): -
38 #ExclusiveArch: %{ix86}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %description -l pl.UTF-8
50 %description subpackage
52 %description subpackage -l pl.UTF-8
61 %description libs -l pl.UTF-8
64 Summary: Header files for ... library
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ...
66 Group: Development/Libraries
67 # if base package contains shared library for which these headers are
68 #Requires: %{name} = %{version}-%{release}
69 # if -libs package contains shared library for which these headers are
70 #Requires: %{name}-libs = %{version}-%{release}
73 Header files for ... library.
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe biblioteki ....
79 Summary: Static ... library
80 Summary(pl.UTF-8): Statyczna biblioteka ...
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
87 %description static -l pl.UTF-8
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
103 # you'll need this if you cp -a complete dir in source
104 # cleanup backups after patching
105 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
108 # if ac/am/* rebuilding is necessary, do it in this order and add
109 # appropriate BuildRequires
117 #cp -f /usr/share/automake/config.sub .
122 # CFLAGS="%{rpmcflags}" \
123 # LDFLAGS="%{rpmldflags}"
126 rm -rf $RPM_BUILD_ROOT
127 # create directories if necessary
128 #install -d $RPM_BUILD_ROOT
129 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
132 DESTDIR=$RPM_BUILD_ROOT
135 rm -rf $RPM_BUILD_ROOT
146 %post -p /sbin/ldconfig
147 %postun -p /sbin/ldconfig
150 %if %{with initscript}
152 /sbin/chkconfig --add %{name}
153 %service %{name} restart
156 if [ "$1" = "0" ]; then
157 %service -q %{name} stop
158 /sbin/chkconfig --del %{name}
163 %defattr(644,root,root,755)
164 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
167 # if _sysconfdir != /etc:
168 #%%dir %{_sysconfdir}
169 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
170 %attr(755,root,root) %{_bindir}/*
174 # initscript and its config
175 %if %{with initscript}
176 %attr(754,root,root) /etc/rc.d/init.d/%{name}
177 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
180 #%{_examplesdir}/%{name}-%{version}
182 %if %{with subpackage}
184 %defattr(644,root,root,755)
186 #%{_datadir}/%{name}-ext