libavc1394/libavc1394.spec

changeset 1
4667f24fe848
parent 0
4f133201e207
equal deleted inserted replaced
0:de19645d2019 1:6bb49883eb0e
1 Name: libavc1394
1 Summary: Audio/Video Control library for IEEE-1394 devices 2 Summary: Audio/Video Control library for IEEE-1394 devices
2 Name: libavc1394 3 Vendor: Europalab Software
3 Version: 0.5.3 4 Packager: Michael Schloh von Bennewitz
4 Release: 10%{?dist} 5 Distribution: MeeGo Thirdparty
6 Version: 0.5.4
7 Release: 20101201
5 License: GPLv2+ and LGPLv2+ 8 License: GPLv2+ and LGPLv2+
6 Group: System Environment/Libraries 9 Group: System Environment/Libraries
7 URL: http://sourceforge.net/projects/libavc1394/ 10 URL: http://sourceforge.net/projects/libavc1394/
8 Source: http://downloads.sourceforge.net/libavc1394/libavc1394-%{version}.tar.gz 11 Source: http://downloads.sourceforge.net/libavc1394/libavc1394-%{version}.tar.gz
9 Patch1: libavc1394-0.5.3-librom.patch 12 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
10 BuildRequires: libraw1394-devel 13 BuildRequires: libraw1394-devel
11 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
12 ExcludeArch: s390 s390x
13 14
14 %description 15 %description
15 The libavc1394 library allows utilities to control IEEE-1394 devices 16 The libavc1394 library allows utilities to control IEEE-1394 devices
16 using the AV/C specification. Audio/Video Control allows applications 17 using the AV/C specification. Audio/Video Control allows applications
17 to control devices like the tape on a VCR or camcorder. 18 to control devices like the tape on a VCR or camcorder.
18 19
19 %package devel 20 %package devel
20 Summary: Development libs for libavc1394 21 Summary: Development libs for libavc1394
21 Group: Development/Libraries 22 Vendor: Europalab Software
22 Requires: %{name} = %{version}-%{release} 23 Packager: Michael Schloh von Bennewitz
23 Requires: libraw1394-devel, pkgconfig 24 Distribution: MeeGo Thirdparty
25 Group: Development/Libraries
26 Requires: %{name} = %{version}-%{release}
27 Requires: libraw1394-devel, pkgconfig
24 28
25 %description devel 29 %description devel
26 Development libraries required to build applications using libavc1394. 30 Development libraries required to build applications using libavc1394.
27 31
28 %prep 32 %prep
29 %setup -q 33 %setup -q
30 %patch1 -p1 -b .librom
31 chmod -x test/dvcont.c 34 chmod -x test/dvcont.c
32 35
33 %build 36 %build
34 %configure 37 %configure
35 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 38 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
36 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 39 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
37 make %{?_smp_mflags} 40 make %{?_smp_mflags}
38 41
39 %install 42 %install
40 rm -rf $RPM_BUILD_ROOT 43 rm -rf $RPM_BUILD_ROOT
41 make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT 44 make install DESTDIR=$RPM_BUILD_ROOT
42 # sigh, --disable-static doesn't work
43 rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
44 45
45 %clean 46 %clean
46 rm -rf $RPM_BUILD_ROOT 47 rm -rf $RPM_BUILD_ROOT
47 48
48 %post -p /sbin/ldconfig 49 %post -p /sbin/ldconfig
50 %postun -p /sbin/ldconfig 51 %postun -p /sbin/ldconfig
51 52
52 %files 53 %files
53 %defattr(-,root,root,-) 54 %defattr(-,root,root,-)
54 %doc AUTHORS COPYING NEWS README ChangeLog TODO 55 %doc AUTHORS COPYING NEWS README ChangeLog TODO
55 # binaries are GPLv2+
56 %{_bindir}/dvcont 56 %{_bindir}/dvcont
57 %{_bindir}/mkrfc2734 57 %{_bindir}/mkrfc2734
58 %{_bindir}/panelctl 58 %{_bindir}/panelctl
59 %{_mandir}/man1/dvcont.1.gz 59 %{_mandir}/man1/dvcont.1.gz
60 %{_mandir}/man1/panelctl.1.gz 60 %{_mandir}/man1/panelctl.1.gz
61 %{_mandir}/man1/mkrfc2734.1* 61 %{_mandir}/man1/mkrfc2734.1*
62 # libs are LGPLv2+
63 %{_libdir}/libavc1394.so.* 62 %{_libdir}/libavc1394.so.*
64 %{_libdir}/librom1394.so.* 63 %{_libdir}/librom1394.so.*
65
66 64
67 %files devel 65 %files devel
68 %defattr(-,root,root,-) 66 %defattr(-,root,root,-)
69 %{_includedir}/libavc1394/ 67 %{_includedir}/libavc1394/
70 %{_libdir}/pkgconfig/libavc1394.pc 68 %{_libdir}/pkgconfig/libavc1394.pc
69 %{_libdir}/libavc1394.a
70 %{_libdir}/libavc1394.la
71 %{_libdir}/libavc1394.so 71 %{_libdir}/libavc1394.so
72 %{_libdir}/librom1394.a
73 %{_libdir}/librom1394.la
72 %{_libdir}/librom1394.so 74 %{_libdir}/librom1394.so
73 75
76 %changelog
77 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.4-20101201
78 - Synchronize with upstream vendor version 0.5.4
79 - Adjust packaging and patch logic
74 80
75 %changelog
76 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.3-10 81 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.3-10
77 - Build for MeeGo 1.1 82 - Package for MeeGo 1.1
78 83
79 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-9 84 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-9
80 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 85 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
81 86
82 * Wed Jun 10 2009 Jarod Wilson <jarod@redhat.com> 0.5.3-8 87 * Wed Jun 10 2009 Jarod Wilson <jarod@redhat.com> 0.5.3-8

mercurial