1 Summary: Tool to add extra metadata to rpm-md repositories
6 Group: Applications/System
7 Source0: https://github.com/openSUSE/enhancerepo/tarball/master?/%{name}-%{version}.tgz
8 # Source0-md5: c3a67eba426ee0f3ce21705d508fb32b
9 URL: http://en.opensuse.org/openSUSE:Enhancerepo
10 BuildRequires: rpm-rubyprov
11 BuildRequires: rpmbuild(macros) >= 1.656
12 BuildRequires: sed >= 4.0
13 Requires: ruby-activesupport >= 2.3
14 Requires: ruby-builder
16 Requires: ruby-log4r >= 1.0.5
17 Requires: ruby-nokogiri >= 1.4
19 Requires: ruby-rubygems >= 1.3.6
20 Requires: ruby-trollop >= 1.0.5
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 enhancerepo is a tool to add extra metadata to rpm-md repositories. It
26 is supposedly to be run on top of a repository created with the
29 It will add the extra data to extension files, and add them to the
30 repository index, doing all the dirty work of updating the index and
31 compressing the files.
34 - Signing of repositories
35 - Adding package eulas from files to susedata.xml
36 - Adding package keywords from files to susedata.xml
37 - Adding package disk usage information to susedata.xml
38 - Add expiration time, product compatibility, keywords to repository
39 susenfo.xml (experimental)
40 - Add deltarpm information to the repository.
41 - Easily create patches
45 mv openSUSE-enhancerepo-0e25f21/* .
47 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
52 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
53 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc README.rdoc TODO CHANGELOG.rdoc
61 %attr(755,root,root) %{_bindir}/enhancerepo
62 %{ruby_vendorlibdir}/enhance_repo.rb
63 %{ruby_vendorlibdir}/enhance_repo
64 %{ruby_vendorlibdir}/tempdir.rb
65 %{ruby_vendorlibdir}/tempdir