# Copyright (c) 2011 T.C. Hollingsworth # Copyright (c) 2011 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. Name: zypper # license permits linking with OpenSSL License: GPLv2+ with exceptions BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Summary: Command line software manager using libzypp Version: 1.6.14 Release: 1%{?dist} # downloaded from https://github.com/openSUSE/zypper/tarball/a66f04f5e72394264ada298f51b87adec132e4a7 Source: %{name}-%{version}.tar.bz2 Url: http://en.opensuse.org/Zypper BuildRequires: libzypp-devel BuildRequires: boost-devel >= 1.33.1 BuildRequires: gettext-devel >= 0.15 BuildRequires: readline-devel >= 5.1 BuildRequires: augeas-devel >= 0.5.0 BuildRequires: gcc-c++ >= 4.1 BuildRequires: cmake >= 2.4.6 Requires: procps %description Zypper is a command line tool for managing software. It can be used to add package repositories, search for packages, install, remove, or update packages, install patches, hardware drivers, verify dependencies, and more. Zypper can be used interactively or non-interactively by user, from scripts, or front-ends. %package log Summary: CLI for accessing the zypper log file License: GPLv2+ with exceptions Requires: python >= 2.7 %description -n zypper-log %{summary} %prep %setup -q %build mkdir build cd build #unset TRANSLATION_SET cmake -DCMAKE_INSTALL_PREFIX=%{_usr} \ -DSYSCONFDIR=%{_sysconfdir} \ -DMANDIR=%{_mandir} \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypper} \ .. #gettextize -f make %{?_smp_mflags} make -C po %{?_smp_mflags} translations %install pushd build make install DESTDIR=$RPM_BUILD_ROOT make -C po install DESTDIR=$RPM_BUILD_ROOT # Create filelist with translations cd .. %{find_lang} %{name} %{__install} -d -m755 $RPM_BUILD_ROOT%{_var}/log touch $RPM_BUILD_ROOT%{_var}/log/zypper.log popd cp -p package/zypper.changes doc/ChangeLog rm -rf $RPM_BUILD_ROOT%{_datadir}/doc %clean rm -rf "$RPM_BUILD_ROOT" %files -f zypper.lang %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/zypp/zypper.conf %config(noreplace) %{_sysconfdir}/logrotate.d/zypper.lr %config(noreplace) %{_sysconfdir}/logrotate.d/zypp-refresh.lr %{_sysconfdir}/bash_completion.d/zypper.sh %{_bindir}/zypper %{_bindir}/installation_sources %{_sbindir}/zypp-refresh %verify(not mode) %attr (755,root,root) %{_sbindir}/zypp-refresh-wrapper %dir %{_datadir}/zypper %{_datadir}/zypper/zypper.aug %dir %{_datadir}/zypper/xml %{_datadir}/zypper/xml/xmlout.rnc %doc %{_mandir}/man8/* %doc COPYING HACKING %doc doc/zypper-rug doc/TODO %ghost %config(noreplace) %{_var}/log/zypper.log %files log %defattr(-,root,root) %{_sbindir}/zypper-log %doc %{_mandir}/man8/zypper-log.8* %changelog * Mon Aug 08 2011 T.C. Hollingsworth - 1.6.14-1 - initial package for Fedora # based on openSUSE spec file retrieved Mon Aug 08 2011 from # https://build.opensuse.org/package/view_file?file=zypper.spec&package=zypper&project=openSUSE%%3AFactory&srcmd5=c6eaebeaa5a69ebaa31a4df77d035dcb