summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRichard Hughes <rhughes@redhat.com>2008-06-16 17:54:29 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-16 17:54:29 -0400
commitdd3840c84dbf24e06f9c301bec233b2735cc712f (patch)
tree05c4a34b2b1266438fc3d58b123794bd8cb7aad4 /contrib
parente967bfd71a068d6c3f5831cfa93de92d78136065 (diff)
Add spec file.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/razor.spec100
1 files changed, 100 insertions, 0 deletions
diff --git a/contrib/razor.spec b/contrib/razor.spec
index e69de29..7e5d1eb 100644
--- a/contrib/razor.spec
+++ b/contrib/razor.spec
@@ -0,0 +1,100 @@
+Summary: Razor is a package management system replacing rpm and yum
+Name: razor
+Version: 0.1
+Release: 0.1%{?dist}
+License: GPLv2+
+Group: System Environment/Libraries
+URL: http://github.com/krh/razor/wikis
+Source0: http://people.freedesktop.org/~krh/releases/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: expat
+Requires: rpm-libs
+
+BuildRequires: expat-devel
+BuildRequires: libtool
+BuildRequires: gettext
+BuildRequires: libcurl-devel
+BuildRequires: rpm-devel
+BuildRequires: zlib-devel
+BuildRequires: perl(XML::Parser)
+
+%description
+Razor is a package management system replacing rpm and yum.
+Razor implements management of packages installed on the system,
+dependency solving, and upgrading in a small compact code base with
+minimal dependencies.
+
+%package libs
+Summary: Libraries for accessing razor
+Group: Development/Libraries
+Requires: expat >= %{dbus_version}
+Requires: %{name} = %{version}-%{release}
+
+%description libs
+Libraries for accessing razor.
+
+%package devel
+Summary: Libraries and headers for razor
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+Requires: libcurl-devel
+Requires: rpm-devel
+Requires: zlib-devel
+
+%description devel
+Headers and libraries for razor.
+
+%prep
+%setup -q
+
+%build
+%configure
+
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.la
+mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT%{_bindir}/rpm-razor
+
+#%find_lang %name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files
+# -f %{name}.lang
+%defattr(-,root,root,-)
+%doc README AUTHORS NEWS COPYING
+%dir %{_datadir}/doc/razor
+%doc %{_datadir}/doc/razor/*.txt
+%config %{_sysconfdir}/bash_completion.d/*.sh
+%{_bindir}/razor
+%{_bindir}/rpm-razor
+%exclude %{_libdir}/librazor*.so.*
+
+%files libs
+%defattr(-,root,root,-)
+%doc README AUTHORS NEWS COPYING
+%{_libdir}/*razor*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+
+%{_libdir}/lib*.so
+%{_libdir}/pkgconfig/*
+%{_includedir}/*
+
+%changelog
+* Mon Jun 16 2008 Richard Hughes <richard@hughsie.com> 0.1-0.1
+- Initial version
+