aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-22 10:35:55 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-22 10:35:55 +0100
commit32b2f781fae5522b92442dcaa74424dff9f68b44 (patch)
tree31741210261cda28a99102c1167cf53ecea921c4
parent0381f97ff9a9c1acbf3adb23fd46822700c812ec (diff)
downloadlibpcd-32b2f781fae5522b92442dcaa74424dff9f68b44.tar.gz
add specfile
-rw-r--r--libpcd.spec44
1 files changed, 44 insertions, 0 deletions
diff --git a/libpcd.spec b/libpcd.spec
new file mode 100644
index 0000000..240cef5
--- /dev/null
+++ b/libpcd.spec
@@ -0,0 +1,44 @@
+Name: libpcd
+License: GPLv2+
+Version: 1.0.1
+Release: 1%{?dist}
+Summary: PhotoCD decoding library
+Group: System Environment/Libraries
+URL: http://www.kraxel.org/blog/linux/%{name}/
+Source: http://www.kraxel.org/releases/%{name}/%{name}_%{version}.tar.gz
+
+%description
+PhotoCD decoding library
+
+%package devel
+Summary: PhotoCD decoding library devel files
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+%description devel
+PhotoCD decoding library devel files
+
+%prep
+%setup -q
+
+%build
+export CFLAGS="%{optflags}"
+make prefix=/usr
+
+%install
+make prefix=/usr DESTDIR=%{buildroot} \
+ libdir=%{buildroot}%{_libdir} \
+ install
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/libpcd*.so.*
+
+%files devel
+%doc *.html *.css
+%{_libdir}/libpcd*.a
+%{_libdir}/libpcd*.so
+%{_includedir}/pcd.h
+
+%changelog