contrib/razor.spec
author Kristian H?gsberg <krh@redhat.com>
Fri Jun 20 21:56:43 2008 -0400 (2008-06-20)
changeset 254 ccb1c11968ab
parent 241 c3eb520e2219
child 272 bff7cf1e7cb6
permissions -rw-r--r--
Introduce install/remove iterators.

These iterator constructors lets you pass in two sets and creates
an iterator for the packages to remove or the packages to install.
The iterators will step through the packages in a sequence that respects
the pre, post, preun and postun modifiers.

Right now, the install order isn't actually implemented, this patch just
implements the API changes and updates the applications.
     1 Summary:   Razor is a package management system replacing rpm and yum
     2 Name:      razor
     3 Version:   0.1
     4 Release:   0.1%{?dist}
     5 License:   GPLv2+
     6 Group:     System Environment/Libraries
     7 URL:       http://github.com/krh/razor/wikis
     8 Source0:   http://people.freedesktop.org/~krh/releases/%{name}-%{version}.tar.gz
     9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    10 
    11 Requires: expat
    12 Requires: rpm-libs
    13 
    14 BuildRequires: expat-devel
    15 BuildRequires: libtool
    16 BuildRequires: gettext
    17 BuildRequires: libcurl-devel
    18 BuildRequires: rpm-devel
    19 BuildRequires: zlib-devel
    20 BuildRequires: perl(XML::Parser)
    21 
    22 %description
    23 Razor is a package management system replacing rpm and yum.
    24 Razor implements management of packages installed on the system,
    25 dependency solving, and upgrading in a small compact code base with
    26 minimal dependencies.
    27 
    28 %package libs
    29 Summary: Libraries for accessing razor
    30 Group: Development/Libraries
    31 Requires: expat >= %{dbus_version}
    32 Requires: %{name} = %{version}-%{release}
    33 
    34 %description libs
    35 Libraries for accessing razor.
    36 
    37 %package devel
    38 Summary: Libraries and headers for razor
    39 Group: Development/Libraries
    40 Requires: %{name} = %{version}-%{release}
    41 Requires: pkgconfig
    42 Requires: libcurl-devel
    43 Requires: rpm-devel
    44 Requires: zlib-devel
    45 
    46 %description devel
    47 Headers and libraries for razor.
    48 
    49 %prep
    50 %setup -q
    51 
    52 %build
    53 %configure
    54 
    55 make %{?_smp_mflags}
    56 
    57 %install
    58 rm -rf $RPM_BUILD_ROOT
    59 make install DESTDIR=$RPM_BUILD_ROOT
    60 
    61 rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.a
    62 rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.la
    63 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT%{_bindir}/rpm-razor
    64 
    65 #%find_lang %name
    66 
    67 %clean
    68 rm -rf $RPM_BUILD_ROOT
    69 
    70 %post libs -p /sbin/ldconfig
    71 
    72 %postun libs -p /sbin/ldconfig
    73 
    74 %files
    75 # -f %{name}.lang
    76 %defattr(-,root,root,-)
    77 %doc README AUTHORS NEWS COPYING
    78 %dir %{_datadir}/doc/razor
    79 %doc %{_datadir}/doc/razor/*.txt
    80 %config %{_sysconfdir}/bash_completion.d/*.sh
    81 %{_bindir}/razor
    82 %{_bindir}/rpm-razor
    83 %exclude %{_libdir}/librazor*.so.*
    84 
    85 %files libs
    86 %defattr(-,root,root,-)
    87 %doc README AUTHORS NEWS COPYING
    88 %{_libdir}/*razor*.so.*
    89 
    90 %files devel
    91 %defattr(-,root,root,-)
    92 
    93 %{_libdir}/lib*.so
    94 %{_libdir}/pkgconfig/*
    95 %{_includedir}/*
    96 
    97 %changelog
    98 * Mon Jun 16 2008 Richard Hughes <richard@hughsie.com> 0.1-0.1
    99 - Initial version
   100