Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mcalmer:suseRegisterRH
suseRegisterRH
suseRegisterRES.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suseRegisterRES.spec of Package suseRegisterRH
# # spec file for package suseRegisterRES (Version 1.3.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define tarversion 1.3 Name: suseRegisterRES Version: 1.3.4 Release: 16.3 Summary: Registration Tool Group: Productivity/Other License: GPL v2 or later Source: suseRegister-%{tarversion}.tar.bz2 Source1: cron_suse_register BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl >= 0:5.00503 Requires: perl-XML-Parser Requires: perl-XML-Writer Requires: perl-URI Requires: perl-libwww-perl Requires: perl-Crypt-SSLeay Requires: e2fsprogs Requires: util-linux %if 0%{?rhel} <= 6 Requires: vixie-cron %else Requires: cronie Requires: perl(LWP::Protocol::https) %endif Provides: suseRegisterRH Obsoletes: suseRegisterRH %if 0%{?rhel} == 5 Requires: openssl >= 0.9.8e-22 %endif PreReq: coreutils BuildArch: noarch %description Command line tool for registering Novell and SUSE products. Authors: -------- Michael Calmer <Michael.Calmer@novell.com> %prep %setup -q -n suseRegister-%{tarversion} %build %install mkdir -p $RPM_BUILD_ROOT/var/lib/suseRegister/ mkdir -p $RPM_BUILD_ROOT/usr/lib/suseRegister/bin make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} SYSCONFIGDIR=%{_sysconfdir} install install -m 755 %{S:1} $RPM_BUILD_ROOT/usr/lib/suseRegister/bin # touching the ghost mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/ touch $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/novell.com-suse_register %post if [ ! -s /etc/cron.d/novell.com-suse_register ]; then date +"%M %H %d * * root /usr/lib/suseRegister/bin/cron_suse_register" > /etc/cron.d/novell.com-suse_register elif ! grep "root /usr/lib/suseRegister/bin/cron_suse_register" /etc/cron.d/novell.com-suse_register > /dev/null 2>&1 ; then sed -i 's/ \/usr\/lib\/suseRegister\/bin\/cron_suse_register/ root \/usr\/lib\/suseRegister\/bin\/cron_suse_register/' /etc/cron.d/novell.com-suse_register fi for i in redhat-release issue issue.net; do if grep "Nahant Update 7" etc/$i >/dev/null; then sed -i 's/7/9/' etc/$i; fi if grep "Nahant Update 8" etc/$i >/dev/null; then sed -i 's/8/9/' etc/$i; fi done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc COPYING COPYRIGHT.english README %config %{_sysconfdir}/*.conf %dir /usr/lib/suseRegister %dir /usr/lib/suseRegister/bin %dir %{perl_vendorlib} %{perl_vendorlib}/SUSE %{_bindir}/* %dir /var/lib/suseRegister %ghost %{_sysconfdir}/cron.d/novell.com-suse_register /usr/lib/suseRegister/bin/* %changelog * Mon Jan 18 2010 mc@suse.de - fix version switch * Tue Sep 8 2009 mc@suse.de - add another version switch - fix cronjob * Mon Jun 8 2009 mc@suse.de - support CentOS * Wed Feb 11 2009 mc@suse.de - implement version switch - better repo handling * Tue Feb 10 2009 mc@suse.de - fix naming * Wed Jan 7 2009 mc@suse.de - fix requires perl version * Tue Dec 16 2008 mc@suse.de - initial version for RH registration.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor