Tomohiro "Tomo-p" KATO 5 жил өмнө
parent
commit
2a644132d4

+ 30 - 16
e/exiv2/exiv2-vl.spec

@@ -1,21 +1,26 @@
+%define _unpackaged_files_terminate_build 1
+
 Name: exiv2
 Summary: Exif and IPTC metadata manipulation library
 Summary(ja): Exif, IPTC メタデータ操作ライブラリ
-Version: 0.25
-Release: 2%{?_dist_release}
+Version: 0.27
+Release: 1%{?_dist_release}
 
 Group: System Environment/Libraries
 License: GPLv2
 URL: http://www.exiv2.org/
 
 Source0: %{name}-%{version}.tar.gz
-Patch1: exiv2-0.18-deps.patch
-Patch2: exiv2-0.16-gcc43.patch
-Patch3: exiv2-0.24-visibility.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
 BuildRequires: expat-devel
+BuildRequires: gettext
+BuildRequires: pkgconfig
+BuildRequires: curl-devel
+BuildRequires: libssh-devel
 BuildRequires: zlib-devel
+
 Obsoletes: libexiv2 <= 0.13
 Provides:  libexiv2 = %{version}-%{release}
 
@@ -73,26 +78,29 @@ exiv2 用ヘッダファイル,ライブラリ,開発用ドキュメント
 
 %prep
 %setup -q
-%patch1 -p1 -b .deps
-%patch2 -p1 -b .gcc43
-%patch3 -p1 -b .visibility
 
 
 %build
-(cd config; make -f config.make)
-%configure --disable-static --disable-rpath
-make %{?_smp_mflags}
+%cmake \
+  -DEXIV2_ENABLE_NLS:BOOL=ON \
+  -DEXIV2_BUILD_PO:BOOL=ON \
+  -DEXIV2_BUILD_SAMPLES:BOOL=OFF \
+  -DEXIV2_ENABLE_LIBXMP:BOOL=ON \
+  .
 
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT 
 
-make install DESTDIR=$RPM_BUILD_ROOT
+make install/fast DESTDIR=%{buildroot}
 
-%find_lang exiv2
+%find_lang exiv2 --with-man
 
-# Unpackaged files
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
+## unpackaged files
+rm -fv %{buildroot}%{_libdir}/libexiv2.la
+rm -fv %{buildroot}%{_libdir}/libxmp.a
+rm -fv %{buildroot}%{_libdir}/pkgconfig//exiv2.lsm
 
 # set eXecute bit on installed lib
 chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
@@ -110,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(-,root,root,-)
-%doc COPYING README
+%doc COPYING README*
 %{_bindir}/exiv2
 %{_libdir}/lib*.so.*
 %{_mandir}/man1/*
@@ -118,14 +126,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(-,root,root,-)
+%doc COPYING*
 #doc doc/index.html doc/include
 #{_bindir}/exiv2-config
 %{_includedir}/exiv2/*
 %{_libdir}/libexiv2.so
 %{_libdir}/pkgconfig/exiv2.pc
+%{_datadir}/exiv2
 
 
 %changelog
+* Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.27-1
+- new upstream release.
+- dropprd all patches.
+
 * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2
 - rebuilt with new toolchain.
 

+ 180 - 0
e/exiv2_025/exiv2_025-vl.spec

@@ -0,0 +1,180 @@
+Name: exiv2_025
+Summary: Exif and IPTC metadata manipulation library
+Summary(ja): Exif, IPTC メタデータ操作ライブラリ
+Version: 0.25
+Release: 3%{?_dist_release}
+
+Group: System Environment/Libraries
+License: GPLv2
+URL: http://www.exiv2.org/
+
+Source0: exiv2-%{version}.tar.gz
+Patch1: exiv2-0.18-deps.patch
+Patch2: exiv2-0.16-gcc43.patch
+Patch3: exiv2-0.24-visibility.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: expat-devel
+BuildRequires: zlib-devel
+Obsoletes: libexiv2 <= 0.13
+Provides:  libexiv2 = %{version}-%{release}
+
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%description
+Exiv2 comprises of a C++ library and a command line utility to access image metadata. Exiv2 supports full read and write access to the Exif and Iptc metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd and so on.
+The command line utility allows you to:
+
+* print the Exif metadata of Jpeg images as summary info, interpreted values,
+or the plain data for each tag (here is a sample)
+* print the IPTC metadata of Jpeg images
+* print the Jpeg comment of Jpeg images
+* set, add and delete Exif and Iptc metadata of Jpeg images
+* adjust the Exif timestamp (that's how it all started...)
+* rename Exif image files according to the Exif timestamp
+* extract, insert and delete Exif metadata, IPTC metadata and Jpeg comments
+* extract, insert and delete the thumbnail image embedded in the Exif metadata
+
+%description -l ja
+Exiv2 は、イメージメタデータにアクセスするための C++ ライブラリと
+コマンドラインユーティリティにより構成されています.Exiv2 は Exif,
+IPTC メタデータの完全な読込み及び書込みアクセス,Exif MakerNote,
+Exif サムネイルを抽出/削除するためのメソッド,Ifd 等にアクセスする
+ためのクラス等をサポートします.
+
+コマンドラインユーティリティにより、次のようなことができます:
+
+* JPEG イメージの EXIF メタデータを各タグごとに表示する
+* JPEG イメージの IPTC メタデータを表示する
+* JPEG イメージのコメントを表示する
+* JPEG イメージに EXIF 情報や IPTC メタデータを設定/追加/削除する
+* EXIF タイムスタンプを調整する
+* EXIF タイムスタンプに基づいて EXIF イメージファイルをリネームする
+* EXIF メタデータ,IPTC メタデータ,JPEG コメントを抽出/挿入/削除する
+* EXIF メタデータ中のサムネイルイメージを抽出/挿入/削除する
+
+
+%prep
+%setup -q -n exiv2-%{version}
+%patch1 -p1 -b .deps
+%patch2 -p1 -b .gcc43
+%patch3 -p1 -b .visibility
+
+
+%build
+(cd config; make -f config.make)
+%configure --disable-static --disable-rpath
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT 
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Unpackaged files
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+# set eXecute bit on installed lib
+chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
+
+
+rm -f %{buildroot}%{_bindir}/exiv2
+rm -f %{buildroot}%{_mandir}/man1/*
+rm -f %{buildroot}%{_libdir}/libexiv2.so
+rm -f %{buildroot}%{_libdir}/pkgconfig/exiv2.pc
+rm -rf %{buildroot}%{_includedir}/exiv2
+rm -rf %{buildroot}%{_datadir}/locale
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+%{_libdir}/lib*.so.*
+
+
+%changelog
+* Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-3
+- temporary package.
+- renamed to exiv2_025 for ABI compatibility.
+
+* Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2
+- rebuilt with new toolchain.
+
+* Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.25-1
+- new upstream release
+
+* Tue Dec 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24-1
+- new upstream release
+- add Patch3 (exiv2-0.24-visibility.patch)
+
+* Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23-1
+- new upstream release
+
+* Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-1
+- new upstream release
+
+* Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.21.1-1
+- new upstream release
+- updated Patch3
+
+* Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.19-2
+- rebuilt with rpm-4.8.1 for pkg-config
+
+* Wed May  5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.19-1
+- new upstream release
+- updated Patch3
+
+* Mon Oct 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.18.2-1
+- new upstream release
+- updated Japanese description
+
+* Fri May  1 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.18.1-2
+- add Patch3 not to use -fvisibility-inlines-hidden
+  (this will also fix build failure on ppc)
+  http://dev.exiv2.org/issues/show/627
+
+* Sun Apr 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.18.1-1
+- new upstream release
+
+* Tue Sep 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17.1-1vl5
+- new upstream release
+
+* Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 0.15-1vl5
+- applied new versioning policy, spec in utf-8
+
+* Wed Dec 26 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.15-0vl4
+- add patch100 for fix CVE-2007-6353 ("setDataArea()" Integer OF)
+
+* Sat Aug 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.15-0vl3
+- add Obsoletes: libexiv2 <= 0.13 , libexiv2-devel <= 0.13
+  to upgrade from 0.13-0vl[12]
+  * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
+  - rebuild with new environment/toolchain
+  * Fri Mar 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
+  - initial build for Vine Linux
+  
+* Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-0vl2
+- rebuilt for VineSeed
+
+* Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-0vl1
+- new upstream release
+- remove Requires: kdelibs-devel at devel package
+
+* Fri Jan 5 2007 TOSHI <vine-jp@mail.goo.ne.jp> 0.12-0vl1
+- build for vine 4.0
+
+* Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.12-1
+- exiv2-0.12
+# end of file
+

+ 14 - 10
lib/libg/libgexiv2/libgexiv2-vl.spec

@@ -1,7 +1,7 @@
 Name:           libgexiv2
 Summary:        Gexiv2 is a GObject-based wrapper around the Exiv2 library
 Summary(ja):    Exiv2 ライブラリの GObject ベースのラッパー
-Version:        0.10.8
+Version:        0.10.9
 Release:        1%{?_dist_release}
 
 Group:          System Environment/Libraries
@@ -11,13 +11,15 @@ Vendor:         Project Vine
 Distribution:   Vine Linux
 
 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gexiv2/0.10/gexiv2-%{version}.tar.xz
+Patch0:         replace-single-file-includes.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 
+BuildRequires:  meson
+BuildRequires:  gtk-doc
 BuildRequires:  exiv2-devel >= 0.19
 BuildRequires:  expat-devel
 BuildRequires:  gobject-introspection-devel
-BuildRequires:  libtool
 
 BuildRequires:  vala-devel vala-tools
 BuildRequires:  python-devel
@@ -67,19 +69,17 @@ This package contains the python3 bindings for %{name}
 
 %prep
 %setup -q -n gexiv2-%{version}
+%patch0 -p1
 
 %build
-## configure fails with the error:
-## configure: Invalid argument --program-prefix=
-## http://trac.yorba.org:8000/ticket/2001
-echo '%configure' |  sed '/--program-prefix=/d' > build.tmp
-echo 'make %{?_smp_mflags}' >> build.tmp
-sh build.tmp
+%meson \
+  -Denable-gtk-doc=true
+
+%meson_build
 
 %install
 %{__rm} -rf ${RPM_BUILD_ROOT}
-%{make_install}
-find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} ';'
+%meson_install
 
 %clean
 %{__rm} -rf ${RPM_BUILD_ROOT}
@@ -101,6 +101,7 @@ find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} ';'
 %{_libdir}/pkgconfig/gexiv2.pc
 %{_datadir}/gir-1.0/
 %{_datadir}/gtk-doc/
+%{_datadir}/vala/vapi/gexiv2.deps
 %{_datadir}/vala/vapi/gexiv2.vapi
 
 %files -n python-gexiv2
@@ -111,6 +112,9 @@ find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} ';'
 
 
 %changelog
+* Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.9-1
+- update to 0.10.9.
+
 * Mon Oct 08 2018 Toshiaki Ara <ara_t@384.jp> 0.10.8-1
 - update to 0.10.8
 - add new subpackages for python2/python3 bindings