source: projects/specs/trunk/lib/libg/libgphoto2/libgphoto2-vl.spec @ 12446

Revision 12446, 7.9 KB checked in by tomop, 4 years ago (diff)

updated 92 packages

ModemManager?-1.14.0-1

accountsservice-0.6.55-1

adwaita-icon-theme-3.36.1-1

cheese-3.34.0-1

clutter-gst3-3.0.27-1

clutter-gtk-1.8.4-2

clutter-1.26.4-1

cogl-1.22.8-1

colord-gtk-0.2.0-1

colord-1.4.4-1

control-center-3.36.4-1

eog-plugins-3.26.5-1

eog-3.36.3-1

evince-3.36.7-1

evolution-data-server-3.36.4-1

evolution-3.36.4-1

folks-0.14.0-1

fuse3-3.9.2-2

gcr-3.36.0-1

gdm-3.36.3-1

geocode-glib-3.26.2-1

gjs-1.64.4-1

glade3-3.36.0-1

gnome-applets-3.36.4-1

gnome-autoar-0.2.4-1

gnome-bluetooth-3.34.1-1

gnome-books-3.34.0-3

gnome-clocks-3.36.2-1

gnome-color-manager-3.36.0-1

gnome-contacts-3.36.2-1

gnome-desktop3-3.36.4-1

gnome-documents-3.34.0-1

gnome-flashback-3.36.3-1

gnome-font-viewer-3.34.0-1

gnome-keyring-3.36.0-1

gnome-menus-3.36.0-1

gnome-online-accounts-3.36.0-1

gnome-panel-3.36.2-1

gnome-session-3.36.0-1

gnome-settings-daemon-3.36.1-1

gnome-shell-3.36.4-1

gnome-software-3.36.1-1

gnome-themes-extra-3.28-2

gnome-tweaks-3.34.0-1

gnome-video-effects-0.5.0-1

gom-0.4-1

graphene-1.10.2-2

grilo-plugins-0.3.11-1

grilo-0.3.12-1

gsettings-desktop-schemas-3.36.1-1

gsound-1.0.2-3

gvfs-1.44.1-1

libaccounts-glib-1.25-1

libappindicator-12.10.0-1

libchamplain-0.12.20-1

libdbusmenu-16.04.0-1

libgdata-0.17.12-1

libgepub-0.6.0-4

libgphoto2-2.5.25-1

libgweather-3.36.1-1

libgxps-0.3.1-1

libhandy0-0.0.13-6

libical-3.0.8-2

libindicator-12.10.1-2

libmtp-1.1.17-1

libnma-1.8.30-2

liboauth-1.0.3-2

libsecret-0.20.3-1

libspectre-0.2.9-1

libwacom-1.4.1-1

libwnck3-3.36.0-1

libxmlb-0.1.15-3

metacity-3.36.1-1

mm-common-1.0.1-3

mobile-broadband-provider-info-0.20190618-1

mozjs68-68.11.0-1

mutter-3.36.4-1

nautilus-3.36.3-1

network-manager-applet-1.18.0-1

pipewire-0.3.8-1

python-dbusmock-0.18.3-6

python-mallard-ducktype-1.0.2-8

startup-notification-0.12-4

totem-pl-parser-3.26.5-1

totem-3.34.1-1

vala-0.48.8-1

xdg-desktop-portal-gtk-1.7.1-1

xdg-desktop-portal-1.7.2-1

yelp-tools-3.32.2-1

yelp-xsl-3.36.0-1

yelp-3.36.0-1

zenity-3.32.0-1

Line 
1Summary: Library for accessing digital cameras
2Summary(ja): デジタルカメラにアクセスするためのライブラリ
3Name: libgphoto2
4Version: 2.5.25
5Release: 1%{?_dist_release}
6Vendor: Project Vine
7Distribution: Vine Linux
8
9# GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2
10License: GPLv2+ and GPLv2
11URL: https://github.com/gphoto/libgphoto2
12Source0: https://github.com/gphoto/libgphoto2/releases/download/v%{version}/libgphoto2-%{version}.tar.bz2
13Patch1:         gphoto2-pkgcfg.patch
14Patch2:         gphoto2-device-return.patch
15
16BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17#BuildRequires: libusb-devel >= 0.1.6a
18BuildRequires: libusb1-devel
19BuildRequires: libexif-devel
20BuildRequires: libjpeg-devel
21BuildRequires: pkgconfig, sharutils
22BuildRequires: libtool-ltdl-devel >= 2.2.6a
23BuildRequires: popt-devel
24BuildRequires: dbus-devel
25BuildRequires: gd-devel
26# we run autoreconf:
27#BuildRequires: autoconf, automake, libtool, gettext, cvs
28Obsoletes: gphoto2 < 2.4.0
29Obsoletes: gphoto2-devel < 2.4.0
30
31%description
32libgphoto2 is a library that can be used by applications to access
33various digital cameras. libgphoto2 itself is not a GUI application,
34opposed to gphoto. There are GUI frontends for the gphoto2 library,
35however, such as gtkam for example.
36
37
38%package devel
39Summary: Headers and links to compile against the libgphoto2 library
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42Requires: pkgconfig
43#Requires: libusb-devel >= 0.1.6a
44#Requires: libusb1-devel
45Requires: libexif-devel
46Obsoletes: gphoto2 < 2.4.0-11
47Obsoletes: gphoto2-devel < 2.4.0-11
48Provides: gphoto2-devel = %{version}-%{release}
49
50%description devel
51libgphoto2 is a library that can be used by applications to access
52various digital cameras. libgphoto2 itself is not a GUI application,
53opposed to gphoto. There are GUI frontends for the gphoto2 library,
54however, such as gtkam for example.
55
56This package contains files needed to compile applications that
57use libgphoto2.
58
59
60%prep
61%autosetup -p1
62
63for i in AUTHORS ChangeLog COPYING libgphoto2_port/AUTHORS libgphoto2_port/COPYING.LIB `find -name 'README.*'`; do
64    mv ${i} ${i}.old
65    iconv -f ISO-8859-1 -t UTF-8 < ${i}.old > ${i}
66    touch -r ${i}.old ${i} || :
67    rm -f ${i}.old
68done
69
70%build
71export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
72%configure \
73        udevscriptdir='/lib/udev' \
74        --with-drivers=all \
75        --with-doc-dir=%{_docdir}/%{name} \
76        --disable-static \
77        --disable-rpath \
78        --without-aalib \
79        --without-hal
80
81# Don't use rpath!
82sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
83sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
84sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libgphoto2_port/libtool
85sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libgphoto2_port/libtool
86
87make %{?_smp_mflags}
88
89%install
90rm -rf "${RPM_BUILD_ROOT}"
91
92make mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT install
93
94pushd packaging/linux-hotplug/
95install -d -m755 %{buildroot}/usr/share/hal/fdi/information/20thirdparty/
96export LIBDIR=$RPM_BUILD_ROOT%{_libdir}
97export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}
98export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
99
100#$RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list hal-fdi | \
101#grep -v "<!-- This file was generated" > $RPM_BUILD_ROOT/%{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
102
103# Output udev rules for device identification; this is used by GVfs gphoto2
104# backend and others.
105#
106# Btw, since it's /lib/udev, never e.g. /lib64/udev, we hardcode the path
107#
108mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
109$RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list udev-rules version 136 > $RPM_BUILD_ROOT/lib/udev/rules.d/40-libgphoto2.rules
110popd
111
112# remove circular symlink in /usr/include/gphoto2 (#460807)
113rm -f $RPM_BUILD_ROOT%{_includedir}/gphoto2/gphoto2
114
115# remove unneeded print-camera-list from libdir (#745081)
116rm -f $RPM_BUILD_ROOT%{_libdir}/libgphoto2/print-camera-list
117
118rm -rf $RPM_BUILD_ROOT%{_libdir}/libgphoto2/*/*a
119rm -rf $RPM_BUILD_ROOT%{_libdir}/libgphoto2_port/*/*a
120rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
121rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
122
123rm -f libgphoto.lang
124%find_lang %{name}-6
125%find_lang %{name}_port-12
126cat %{name}*.lang >> libgphoto.lang
127
128# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
129rm -rf __doc
130mkdir -p __doc
131mv $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/* __doc
132rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
133
134%clean
135rm -rf "${RPM_BUILD_ROOT}"
136
137%post -p /sbin/ldconfig
138
139%postun -p /sbin/ldconfig
140
141%files -f libgphoto.lang
142%defattr(-,root,root)
143%license COPYING
144%doc AUTHORS README.md NEWS
145%dir %{_libdir}/libgphoto2_port
146%dir %{_libdir}/libgphoto2_port/*
147%dir %{_libdir}/libgphoto2
148%dir %{_libdir}/libgphoto2/*
149%{_libdir}/libgphoto2_port/*/*.so
150%{_libdir}/libgphoto2/*/*.so
151%{_libdir}/*.so.*
152#{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
153%{_datadir}/libgphoto2
154%{_datadir}/libgphoto2_port
155/lib/udev/rules.d/40-libgphoto2.rules
156/lib/udev/check-ptp-camera
157
158%files devel
159%defattr(-,root,root)
160%doc __doc/*
161%{_bindir}/gphoto2-config*
162%{_bindir}/gphoto2-port-config
163%{_includedir}/gphoto2
164%{_libdir}/*.so
165%{_libdir}/pkgconfig/*
166%{_mandir}/man3/*
167
168
169%changelog
170* Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.25-1
171- new upstream release.
172- dropped Patch3: fixed in upstream.
173
174* Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.21-1
175- updated to 2.5.21.
176
177* Sun Feb  8 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.5.7-1
178- updated to 2.5.7
179
180* Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.0-2
181- rebuilt with gd-2.1.0.
182
183* Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 2.5.0-1
184- update to 2.5.0
185- drop MAX_ENTRIES patch (Patch4): obsolete
186- update libusb version: 0.1.5 -> 0.1.6a
187- add BuildRequires: libusb1-devel
188- add Requires: libusb1
189- add Vendor and Distribution tags
190
191* Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-2
192- add BR: dbus-devel, gd-devel
193- add --without-hal
194
195* Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-1
196- update to 2.4.11
197- install udev script to /lib/udev
198- add udev rules
199
200* Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.5-2
201- rebuild with rpm-4.8.1 for pkg-config file
202
203* Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
204- new upstream release
205- build with libtool-2.2.6a
206
207* Sat Mar  7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-1
208- new upstream release
209- dropped Patch6
210- changed Group to System Environment/Libraries
211- added BuildRequires: popt-devel instead of popt
212- added BuildRequires: cvs
213
214* Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
215- initial build for Vine Linux
216
217* Fri Jun 20 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.4.1-5
218- fix pkgcfg patch to match actual .pc file names (fixes kdegraphics build)
219
220* Thu Jun 12 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-3
221- libgphoto2-devel requires libusb-devel and libexif-devel for
222  pkgconfig
223
224* Wed Jun 04 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-2
225- fix obsoletes
226- workaround problem with coreutils-6.12 and RHEL5-xen kernels
227  what prevents libgphoto2 koji build
228
229* Mon Jun 02 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-1
230- update to 2.4.1 (#443515, #436138)
231
232* Thu May 29 2008 Stepan Kasal <skasal@redhat.com> 2.4.0-3
233- drop gphoto2-norpath.patch
234- use quoted here-document in %%prep
235- fix some typos in m4 sources
236- run autoreconf to get autotools right
237
238* Mon Apr 21 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-2
239- apply patch to fix build with libusb
240
241* Fri Apr 18 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-1
242- backport patch from upstream to avoid segfault when
243  data phase is skipped for certain devices (#435413)
244- initial build
245
246* Mon Apr 14 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.2
247- review fixes, thanks to Hans de Goede: (#437285)
248  - remove unused macro
249  - don't exclude s390/s390x
250  - preserve timestamps
251  - fix license
252
253* Thu Mar 13 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.1
254- initial libgphoto2 packaging
Note: See TracBrowser for help on using the repository browser.