]> git.pld-linux.org Git - packages/bugzilla.git/commitdiff
- work in progress
authorTomek Orzechowski <orzech@pld-linux.org>
Wed, 5 Mar 2003 15:47:03 +0000 (15:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bugzilla.spec -> 1.1

bugzilla.spec [new file with mode: 0644]

diff --git a/bugzilla.spec b/bugzilla.spec
new file mode 100644 (file)
index 0000000..e3245cb
--- /dev/null
@@ -0,0 +1,95 @@
+%include       /usr/lib/rpm/macros.perl
+Summary:       Bug tracking system
+Summary(pl):   System ¶ledzenia b³êdów
+Name:          bugzilla
+Version:       2.16.2
+Release:       0.2
+License:       GPL
+Group:         Web/Aplications
+Source0:       http://ftp.mozilla.org/pub/webtools/%{name}-%{version}.tar.gz
+Source1:       %{name}.conf
+URL:           http://www.bugzilla.org/
+Requires:      mysql
+Requires:      perl-DBD-mysql
+#BuildRequires:        perl
+#PreReq:               -
+#Requires(pre,post):   -
+#Requires(preun):      -
+#Requires(postun):     -
+#Provides:     -
+#Obsoletes:    -
+#Conflicts:    -
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _noautoreq      'perl(localconfig)' 'perl(data::params)' 'perl(data::versioncache)'
+
+%define                _bugzilladir    /usr/share/bugzilla
+
+%description
+blah
+
+%description -l pl
+blah
+
+%prep
+%setup -q
+
+%build
+perl -pi -e 's@#\!/usr/bonsaitools/bin/perl@#\!/usr/bin/perl@' *cgi *pl Bug.pm processmail syncshadowdb
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/httpd,%{_bugzilladir}/{css,data,docs/{html,images},template},graphs}
+
+install *.{cgi,gif,html,jpg,js,pl,pm,txt} processmail syncshadowdb $RPM_BUILD_ROOT%{_bugzilladir}
+install css/*.css $RPM_BUILD_ROOT%{_bugzilladir}/css
+install docs/html/*.html $RPM_BUILD_ROOT%{_bugzilladir}/docs/html
+install docs/images/*.{gif,jpg} $RPM_BUILD_ROOT%{_bugzilladir}/docs/images
+
+cp -r template/en $RPM_BUILD_ROOT%{_bugzilladir}/template
+
+find -name CVS -type d | xargs rm -rf
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = "1" ]; then
+       if [ -f /etc/httpd/httpd.conf ] && \
+           ! grep -q "^Include.*/bugzilla.conf" /etc/httpd/httpd.conf; then
+               echo "Include /etc/httpd/bugzilla.conf" >> /etc/httpd/httpd.conf
+       fi
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       umask 027
+       grep -E -v "^Include.*bugzilla.conf" /etc/httpd/httpd.conf > \
+               /etc/httpd/httpd.conf.tmp
+       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README UPGRADING UPGRADING-pre-2.8 docs/rel_notes.txt docs/txt/Bugzilla-Guide.txt
+%config(noreplace) %verify(not size mtime md5) /etc/httpd/%{name}.conf
+%dir %{_bugzilladir}
+
+%{_bugzilladir}/css
+%{_bugzilladir}/docs
+%{_bugzilladir}/template
+
+%attr{775,root,http} %{_bugzilladir}/graphs
+%attr{640,root,http} %config(noreplace) %verify(not size mtime md5) globals.pl
+
+%{_bugzilladir}/[!g]*.pl
+
+%attr{755,root,root} %{_bugzilladir}/*.cgi
This page took 0.0908409999999999 seconds and 4 git commands to generate.