File zypper.spec of Package zypper

# 
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.22
# 
# >> macros
# << macros

Name:       zypper
Summary:    Command line software manager using libzypp
Version:    1.6.10
Release:    2.1
Group:      System/Packages
License:    GPL v2 or later
URL:        http://en.opensuse.org/Zypper
Source0:    %{name}-%{version}.tar.bz2
Source1:    %{name}-rpmlintrc
Source100:  zypper.yaml
Patch0:     0001-Support-searching-file-with-full-path.patch
Patch1:     0002-Support-fuzzy-search-file.patch
Requires:   procps
BuildRequires:  pkgconfig(libzypp)
BuildRequires:  pkgconfig(augeas)
BuildRequires:  boost-devel >= 1.33.1
BuildRequires:  gettext-devel >= 0.15
BuildRequires:  readline-devel >= 5.1
BuildRequires:  cmake >= 2.4.6
BuildRequires:  gcc-c++ >= 4.1


%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. 




%prep
%setup -q -n %{name}-%{version}

# 0001-Support-searching-file-with-full-path.patch
%patch0 -p1
# 0002-Support-fuzzy-search-file.patch
%patch1 -p1
# >> setup
# << setup

%build
# >> build pre
# << build pre

mkdir meego-build
cd meego-build
cmake ..  \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DSYSCONFDIR=%{_sysconfdir} \
    -DMANDIR=%{_mandir} \
    -DCMAKE_VERBOSE_MAKEFILE=TRUE \
    -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
    -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypper}

make %{?jobs:-j%jobs}

# >> build post
make -C po %{?jobs:-j %jobs} translations
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
cd meego-build
%make_install

# >> install post
make -C po install DESTDIR=$RPM_BUILD_ROOT
# Create filelist with translations
cd ..
%{__install} -d -m755 %buildroot%_var/log
touch %buildroot%_var/log/zypper.log

# << install post
%find_lang zypper






%files -f zypper.lang
%defattr(-,root,root,-)
# >> files
%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}/*/*
%doc %dir %{_datadir}/doc/packages/zypper
%doc %{_datadir}/doc/packages/zypper/TODO
%doc %{_datadir}/doc/packages/zypper/zypper-rug
%doc %{_datadir}/doc/packages/zypper/COPYING
%doc %{_datadir}/doc/packages/zypper/HACKING
# declare ownership of the log file but prevent
# it from being erased by rpm -e
%ghost %config(noreplace) %{_var}/log/zypper.log
# << files


%changelog
* Mon Aug  1 2011 Zhang Qiang <qiang.z.zhang@intel.com> - 1.6.10
- Add 0002-Support-fuzzy-search-file.patch to support fuzzy
  search files, resolved FEA#14836
* Tue Jul  5 2011 Anas Nashif <anas.nashif@intel.com> - 1.6.10
- Update to 1.6.10
* Tue Apr 19 2011 Zhang Qiang <qiang.z.zhang@intel.com> - 1.5.3
- upgrade to 1.5.3.
* Wed Dec 22 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 1.5.2
- upgrade to 1.5.2. fix BMC#11604
* Wed Dec 15 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 1.4.7
- Update MeeGo-support-search-file.patch to search file with full
  path. Feature #11130.
* Fri Dec 10 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 1.4.7
- Add MeeGo-support-search-file.patch to support search files
  Feature 11130.
* Tue Sep 28 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 1.4.7
- Add MeeGo-remove-multiversionInstall.patch to remove the multi-
  version install solvable from the no-install list. Fix BMC#1595
* Sat Sep  4 2010 Anas Nashif <nashif@linux.intel.com> - 1.4.7
- Use spectacle
* Mon Aug 23 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 1.4.7
- Update to 1.4.7
* Thu Jun 17 2010 Anas Nashif <anas.nashif@intel.com> - 1.4.4
- Update to 1.4.4
* Sun Mar 21 2010 Anas Nashif <anas.nashif@intel.com> - 1.4.1
- Updaye to 1.4.1
* Sat Mar  6 2010 Anas Nashif <anas.nashif@intel.com> - 1.4.0
- Update to 1.4.0
- Remove upstreamed patches
* Sat Feb 20 2010 Anas Nashif <anas.nashif@intel.com> - 1.2.16
- Fixed --type option handling (Patch from upstream)
* Fri Feb 19 2010 Anas Nashif <anas.nashif@intel.com> - 1.2.16
- Remove obsolete patch dealing with uservisible variable in patterns
* Wed Feb 17 2010 Anas Nashif <anas.nashif@intel.com> - 1.2.16
- Update to 1.2.16
* Tue Jan 19 2010 Peter Zhu <peter.j.zhu@intel.com> - 1.2.8
- Update to 1.2.8
* Tue Sep 29 2009 Anas Nashif <anas.nashif@intel.com> - 1.2.4
- Update to 1.2.4
* Mon Aug 17 2009 Anas Nashif <anas.nashif@intel.com> - 1.2.2
- Remove unneeded build requirements
* Fri Aug 14 2009 Anas Nashif <anas.nashif@intel.com> - 1.2.2
- Initial import into Moblin
openSUSE Build Service is sponsored by