From ecddfc255d095adf16583b520eb5b9faf0fcf804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Fri, 10 Oct 2014 23:52:52 +0200 Subject: RPM Packaging: update tqt3 --- redhat/3rdparty/htdig/htdig.spec | 231 ------------------------------ redhat/Makefile.r14 | 5 +- redhat/dependencies/tqt3/tqt3-14.0.0.spec | 2 +- redhat/extras/htdig/htdig.spec | 231 ++++++++++++++++++++++++++++++ 4 files changed, 233 insertions(+), 236 deletions(-) delete mode 100644 redhat/3rdparty/htdig/htdig.spec create mode 100644 redhat/extras/htdig/htdig.spec (limited to 'redhat') diff --git a/redhat/3rdparty/htdig/htdig.spec b/redhat/3rdparty/htdig/htdig.spec deleted file mode 100644 index 3dcfe7274..000000000 --- a/redhat/3rdparty/htdig/htdig.spec +++ /dev/null @@ -1,231 +0,0 @@ -%define _disable_ld_as_needed 1 -%define _disable_ld_no_undefined 1 - -%define contentdir /var/www - -Summary: A web indexing and searching system for a small domain or intranet -Name: htdig -Version: 3.2.0b7 -Release: 1%{?dist} -License: GPL -Group: Networking/WWW -URL: http://www.htdig.org/ - -Source0: htdig-3.2.0b7.tar.gz - -BuildRequires: flex >= 2.5.4a-13 -BuildRequires: libtool -BuildRequires: gcc-c++ -BuildRequires: zlib-devel - -BuildRoot: %{_tmppath}/%{name}-buildroot - -%description -The ht://Dig system is a complete world wide web indexing and searching system -for a small domain or intranet. This system is not meant to replace the need -for powerful internet-wide search systems like Lycos, Infoseek, Webcrawler and -AltaVista. Instead it is meant to cover the search needs for a single company, -campus, or even a particular sub section of a web site. - -As opposed to some WAIS-based or web-server based search engines, ht://Dig can -span several web servers at a site. The type of these different web servers -doesn't matter as long as they understand the HTTP 1.0 protocol. - -ht://Dig was developed at San Diego State University as a way to search the -various web servers on the campus network. - -%files -%defattr(-,root,root,0755) -%dir %{_sysconfdir}/htdig -%config(noreplace) %{_sysconfdir}/htdig/cookies.txt -%config(noreplace) %{_sysconfdir}/htdig/htdig.conf -%config(noreplace) %{_sysconfdir}/htdig/HtFileType-magic.mime -%config(noreplace) %{_sysconfdir}/htdig/mime.types -%{_bindir}/* -%dir %{_libdir}/htdig -%dir %{_libdir}/htdig_db -%{_libdir}/htdig/*3.2.0.so -%{_libdir}/htdig_db/*3.2.0.so -%dir %attr(-,htdig,htdig) /var/lib/htdig -%dir %attr(-,htdig,root) %{_datadir}/htdig -%{_datadir}/htdig/* -%{_mandir}/man1/* -%{_mandir}/man8/* - -%pre -egrep "^htdig:" /etc/group >/dev/null -if [ $? = 1 ]; then - echo "adding htdig group" - groupadd -r htdig -fi -egrep "^htdig:" /etc/passwd >/dev/null -if [ $? = 1 ]; then - echo "adding htdig user" - useradd -r -g htdig -s "" -d /var/lib/htdig htdig -fi -egrep "^htdig:.*/var/lib/htdig:" /etc/passwd >/dev/null -if [ $? = 1 ]; then - echo "updating htdig homedir" - perl -pi -e "s,^(htdig:.*:)[^:]+(:[^:]*)$,\1/var/lib/htdig\2," /etc/passwd -fi - -%preun -# we're uninstalling -if [ $1 = 0 ]; then - egrep "^htdig:" /etc/passwd >/dev/null - if [ $? = 0 ]; then - echo "removing htdig user" - userdel htdig # userdel seems to nuke the group too.. - fi - - egrep "^htdig:" /etc/group >/dev/null - if [ $? = 0 ]; then - echo "removing htdig group" - groupdel htdig - fi -fi - -########## - -%package devel -Summary: Libraries needed to develop for htdig -Group: Development/C -Requires: %{name} = %{version}-%{release} - -%description devel -Libraries needed to develop for htdig. - -%files devel -%defattr(-,root,root) -%doc ChangeLog -%doc htdoc/* -%{_libdir}/htdig/*.a -%{_libdir}/htdig/*.la -%{_libdir}/htdig/*[a-z].so -%{_libdir}/htdig_db/*.a -%{_libdir}/htdig_db/*.la -%{_libdir}/htdig_db/*[a-z].so -%{_includedir}/* - -########## - -%package web -Summary: Scripts and HTML code needed for using ht://Dig as a web search engine -Group: Networking/WWW -Requires: %{name} = %{version}-%{release} -Requires: webserver - -%description web -The ht://Dig system is a complete world wide web indexing and searching -system for a small domain or intranet. This system is not meant to replace -the need for powerful internet-wide search systems like Lycos, Infoseek, -Webcrawler and AltaVista. Instead it is meant to cover the search needs for -a single company, campus, or even a particular sub section of a web site. As -opposed to some WAIS-based or web-server based search engines, ht://Dig can -span several web servers at a site. The type of these different web servers -doesn't matter as long as they understand the HTTP 1.0 protocol. - -The %{name}-web package includes CGI scripts and HTML code needed to use -ht://Dig on a website. - -ht://Dig was developed at San Diego State University as a way to search the -various web servers on the campus network. - -%files web -%defattr(-,root,root) -%config(missingok, noreplace) %attr(0755,root,root) /etc/cron.daily/htdig-dbgen -%{contentdir}/html/htdig -%{contentdir}/cgi-bin/* - -%post web -# Only run this if installing for the first time -if [ "$1" = 1 ]; then - if [ -f /etc/httpd/conf/httpd.conf ];then - SERVERNAME="`grep '^ServerName' /etc/httpd/conf/httpd.conf | awk 'NR == 1 {print $2}'`" - fi - [ -z "$SERVERNAME" ] && SERVERNAME="`hostname -f`" - [ -z "$SERVERNAME" ] && SERVERNAME="localhost" - sed 's/^start_url:.*/#&\ -# (See end of file for this parameter.)/' /etc/htdig/htdig.conf > /tmp/ht.$$ - cat /tmp/ht.$$ > /etc/htdig/htdig.conf - rm /tmp/ht.$$ - cat >> /etc/htdig/htdig.conf < - 3.2.0b7-1 -- Initial build for TDE R14 diff --git a/redhat/Makefile.r14 b/redhat/Makefile.r14 index 1ce207a10..cc299d719 100644 --- a/redhat/Makefile.r14 +++ b/redhat/Makefile.r14 @@ -161,7 +161,7 @@ endif htdig: # build on Mageia, and CentOS >= 7 ifneq ($(wildcard /etc/mageia-release /boot/vmlinuz*.el7*),) - $(call buildpkg,3rdparty/htdig) + $(call buildpkg,extras/htdig) endif imlib1: @@ -280,9 +280,6 @@ libtqt-perl: tqtinterface mlt: tqtinterface $(call buildpkg,libraries/mlt) -mlt++: tqtinterface - $(call buildpkg,libraries/mlt++) - pytdeextensions: tqtinterface python-trinity $(call buildpkg,libraries/pytdeextensions) diff --git a/redhat/dependencies/tqt3/tqt3-14.0.0.spec b/redhat/dependencies/tqt3/tqt3-14.0.0.spec index 05392e61b..b8efae18a 100644 --- a/redhat/dependencies/tqt3/tqt3-14.0.0.spec +++ b/redhat/dependencies/tqt3/tqt3-14.0.0.spec @@ -221,7 +221,7 @@ BuildRequires: libxmu-devel %if 0%{?suse_version} == 1140 %define xi_devel libXi6-devel %endif -%{?%define xi_devel:BuildRequires: %{xi_devel}} +%{?xi_devel:BuildRequires: %{xi_devel}} # Xorg support %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} diff --git a/redhat/extras/htdig/htdig.spec b/redhat/extras/htdig/htdig.spec new file mode 100644 index 000000000..3dcfe7274 --- /dev/null +++ b/redhat/extras/htdig/htdig.spec @@ -0,0 +1,231 @@ +%define _disable_ld_as_needed 1 +%define _disable_ld_no_undefined 1 + +%define contentdir /var/www + +Summary: A web indexing and searching system for a small domain or intranet +Name: htdig +Version: 3.2.0b7 +Release: 1%{?dist} +License: GPL +Group: Networking/WWW +URL: http://www.htdig.org/ + +Source0: htdig-3.2.0b7.tar.gz + +BuildRequires: flex >= 2.5.4a-13 +BuildRequires: libtool +BuildRequires: gcc-c++ +BuildRequires: zlib-devel + +BuildRoot: %{_tmppath}/%{name}-buildroot + +%description +The ht://Dig system is a complete world wide web indexing and searching system +for a small domain or intranet. This system is not meant to replace the need +for powerful internet-wide search systems like Lycos, Infoseek, Webcrawler and +AltaVista. Instead it is meant to cover the search needs for a single company, +campus, or even a particular sub section of a web site. + +As opposed to some WAIS-based or web-server based search engines, ht://Dig can +span several web servers at a site. The type of these different web servers +doesn't matter as long as they understand the HTTP 1.0 protocol. + +ht://Dig was developed at San Diego State University as a way to search the +various web servers on the campus network. + +%files +%defattr(-,root,root,0755) +%dir %{_sysconfdir}/htdig +%config(noreplace) %{_sysconfdir}/htdig/cookies.txt +%config(noreplace) %{_sysconfdir}/htdig/htdig.conf +%config(noreplace) %{_sysconfdir}/htdig/HtFileType-magic.mime +%config(noreplace) %{_sysconfdir}/htdig/mime.types +%{_bindir}/* +%dir %{_libdir}/htdig +%dir %{_libdir}/htdig_db +%{_libdir}/htdig/*3.2.0.so +%{_libdir}/htdig_db/*3.2.0.so +%dir %attr(-,htdig,htdig) /var/lib/htdig +%dir %attr(-,htdig,root) %{_datadir}/htdig +%{_datadir}/htdig/* +%{_mandir}/man1/* +%{_mandir}/man8/* + +%pre +egrep "^htdig:" /etc/group >/dev/null +if [ $? = 1 ]; then + echo "adding htdig group" + groupadd -r htdig +fi +egrep "^htdig:" /etc/passwd >/dev/null +if [ $? = 1 ]; then + echo "adding htdig user" + useradd -r -g htdig -s "" -d /var/lib/htdig htdig +fi +egrep "^htdig:.*/var/lib/htdig:" /etc/passwd >/dev/null +if [ $? = 1 ]; then + echo "updating htdig homedir" + perl -pi -e "s,^(htdig:.*:)[^:]+(:[^:]*)$,\1/var/lib/htdig\2," /etc/passwd +fi + +%preun +# we're uninstalling +if [ $1 = 0 ]; then + egrep "^htdig:" /etc/passwd >/dev/null + if [ $? = 0 ]; then + echo "removing htdig user" + userdel htdig # userdel seems to nuke the group too.. + fi + + egrep "^htdig:" /etc/group >/dev/null + if [ $? = 0 ]; then + echo "removing htdig group" + groupdel htdig + fi +fi + +########## + +%package devel +Summary: Libraries needed to develop for htdig +Group: Development/C +Requires: %{name} = %{version}-%{release} + +%description devel +Libraries needed to develop for htdig. + +%files devel +%defattr(-,root,root) +%doc ChangeLog +%doc htdoc/* +%{_libdir}/htdig/*.a +%{_libdir}/htdig/*.la +%{_libdir}/htdig/*[a-z].so +%{_libdir}/htdig_db/*.a +%{_libdir}/htdig_db/*.la +%{_libdir}/htdig_db/*[a-z].so +%{_includedir}/* + +########## + +%package web +Summary: Scripts and HTML code needed for using ht://Dig as a web search engine +Group: Networking/WWW +Requires: %{name} = %{version}-%{release} +Requires: webserver + +%description web +The ht://Dig system is a complete world wide web indexing and searching +system for a small domain or intranet. This system is not meant to replace +the need for powerful internet-wide search systems like Lycos, Infoseek, +Webcrawler and AltaVista. Instead it is meant to cover the search needs for +a single company, campus, or even a particular sub section of a web site. As +opposed to some WAIS-based or web-server based search engines, ht://Dig can +span several web servers at a site. The type of these different web servers +doesn't matter as long as they understand the HTTP 1.0 protocol. + +The %{name}-web package includes CGI scripts and HTML code needed to use +ht://Dig on a website. + +ht://Dig was developed at San Diego State University as a way to search the +various web servers on the campus network. + +%files web +%defattr(-,root,root) +%config(missingok, noreplace) %attr(0755,root,root) /etc/cron.daily/htdig-dbgen +%{contentdir}/html/htdig +%{contentdir}/cgi-bin/* + +%post web +# Only run this if installing for the first time +if [ "$1" = 1 ]; then + if [ -f /etc/httpd/conf/httpd.conf ];then + SERVERNAME="`grep '^ServerName' /etc/httpd/conf/httpd.conf | awk 'NR == 1 {print $2}'`" + fi + [ -z "$SERVERNAME" ] && SERVERNAME="`hostname -f`" + [ -z "$SERVERNAME" ] && SERVERNAME="localhost" + sed 's/^start_url:.*/#&\ +# (See end of file for this parameter.)/' /etc/htdig/htdig.conf > /tmp/ht.$$ + cat /tmp/ht.$$ > /etc/htdig/htdig.conf + rm /tmp/ht.$$ + cat >> /etc/htdig/htdig.conf < - 3.2.0b7-1 +- Initial build for TDE R14 -- cgit v1.2.1