[10025] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
[11334] | 2 | %define _unpackaged_files_terminate_build 1 |
---|
[10025] | 3 | |
---|
[11334] | 4 | %define package_version 0.8.1 |
---|
| 5 | %define package_release 1%{?_dist_release} |
---|
[4616] | 6 | |
---|
| 7 | Name: rest |
---|
| 8 | Version: %{package_version} |
---|
| 9 | Release: %{package_release} |
---|
| 10 | Summary: RESTful web api query library |
---|
| 11 | |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | License: LGPLv2+ |
---|
[6011] | 14 | URL: http://git.gnome.org/browse/librest |
---|
[5094] | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.7/%{name}-%{version}.tar.xz |
---|
[4616] | 16 | |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | |
---|
| 19 | BuildRequires: glib2-devel |
---|
| 20 | BuildRequires: gobject-introspection-devel |
---|
| 21 | BuildRequires: libsoup-devel |
---|
[6890] | 22 | BuildRequires: ca-certificates |
---|
[4616] | 23 | BuildRequires: gtk-doc |
---|
| 24 | |
---|
[6890] | 25 | Requires: ca-certificates |
---|
| 26 | |
---|
[4616] | 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | Packager: Takemikaduchi |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | This library has been designed to make it easier to access web services that |
---|
| 33 | claim to be "RESTful". A reasonable definition of what this means can be found |
---|
| 34 | on Wikipedia [1]. However a reasonable description is that a RESTful service |
---|
| 35 | should have urls that represent remote objects which methods can then be |
---|
| 36 | called on. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development tools for rest |
---|
| 41 | Summary(ja): rest の開発環境 |
---|
| 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | Requires: pkgconfig |
---|
| 45 | Requires: glib2-devel |
---|
| 46 | Requires: libsoup-devel |
---|
| 47 | Requires: libxml2-devel |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | Header files and libraries for building a extension library for the |
---|
| 51 | rest. |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %package doc |
---|
| 55 | Summary: Documentation for rest |
---|
| 56 | Summary(ja): rest 用のドキュメント |
---|
| 57 | Group: Documentation |
---|
| 58 | Requires: %{name} = %{version}-%{release} |
---|
[9475] | 59 | BuildArch: noarch |
---|
[4616] | 60 | |
---|
| 61 | |
---|
| 62 | %description doc |
---|
| 63 | This package contains documentation for rest. |
---|
| 64 | |
---|
| 65 | |
---|
[10025] | 66 | # compat32 |
---|
| 67 | %package -n compat32-%{name} |
---|
| 68 | Summary: RESTful web api query library |
---|
| 69 | Group: System Environment/Libraries |
---|
| 70 | |
---|
| 71 | %description -n compat32-%{name} |
---|
| 72 | This library has been designed to make it easier to access web services that |
---|
| 73 | claim to be "RESTful". A reasonable definition of what this means can be found |
---|
| 74 | on Wikipedia [1]. However a reasonable description is that a RESTful service |
---|
| 75 | should have urls that represent remote objects which methods can then be |
---|
| 76 | called on. |
---|
| 77 | |
---|
| 78 | |
---|
[4616] | 79 | %prep |
---|
| 80 | %setup -q |
---|
| 81 | |
---|
| 82 | %build |
---|
| 83 | %configure \ |
---|
| 84 | --enable-gtk-doc \ |
---|
| 85 | --disable-static \ |
---|
[6890] | 86 | --enable-introspection=yes |
---|
[4616] | 87 | |
---|
| 88 | make %{?_smp_mflags} |
---|
| 89 | |
---|
| 90 | %install |
---|
| 91 | rm -rf $RPM_BUILD_ROOT |
---|
| 92 | |
---|
| 93 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 94 | |
---|
| 95 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 96 | |
---|
| 97 | %clean |
---|
| 98 | rm -rf $RPM_BUILD_ROOT |
---|
| 99 | |
---|
| 100 | %post -p /sbin/ldconfig |
---|
| 101 | |
---|
| 102 | %postun -p /sbin/ldconfig |
---|
| 103 | |
---|
[10025] | 104 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 107 | |
---|
[4616] | 108 | %files |
---|
| 109 | %defattr(-,root,root,-) |
---|
[11334] | 110 | %doc ChangeLog AUTHORS COPYING README |
---|
[4616] | 111 | %{_libdir}/*.so.* |
---|
| 112 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 113 | |
---|
| 114 | %files devel |
---|
| 115 | %defattr(-, root, root) |
---|
| 116 | %{_includedir}/%{name}-0.7 |
---|
| 117 | %{_libdir}/*.so |
---|
| 118 | %{_libdir}/pkgconfig/*.pc |
---|
| 119 | %{_datadir}/gir-1.0/*.gir |
---|
| 120 | |
---|
| 121 | %files doc |
---|
| 122 | %defattr(-, root, root) |
---|
| 123 | %{_datadir}/gtk-doc/html/%{name}-0.7 |
---|
| 124 | |
---|
[10025] | 125 | %if %{build_compat32} |
---|
| 126 | %files -n compat32-%{name} |
---|
| 127 | %defattr(-,root,root,-) |
---|
| 128 | %{_libdir}/*.so.* |
---|
| 129 | %endif |
---|
[4616] | 130 | |
---|
| 131 | %changelog |
---|
[11334] | 132 | * Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-1 |
---|
| 133 | - new upstream release. |
---|
| 134 | |
---|
[10025] | 135 | * Sat Feb 13 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.93-2 |
---|
| 136 | - create compat32-rest subpakcage |
---|
| 137 | |
---|
[9475] | 138 | * Sat Mar 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.93-1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
[9073] | 141 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.92-1 |
---|
| 142 | - new upstream release |
---|
| 143 | |
---|
[8353] | 144 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.91-1 |
---|
| 145 | - new upstream release |
---|
| 146 | |
---|
[8119] | 147 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.90-2 |
---|
| 148 | - rebuild with VineSeed environment |
---|
| 149 | |
---|
[6890] | 150 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.90-1 |
---|
| 151 | - new upstream release |
---|
| 152 | - change BuildRequires: ca-certificates instead of openssl-devel |
---|
| 153 | |
---|
[6011] | 154 | * Sun Apr 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.12-2 |
---|
| 155 | - fix URL |
---|
| 156 | |
---|
[5168] | 157 | * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.12-1 |
---|
| 158 | - new upstream release |
---|
| 159 | - add BuildRequires: openssl |
---|
| 160 | |
---|
[5094] | 161 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.11-1 |
---|
| 162 | - new upstream release |
---|
| 163 | |
---|
[4616] | 164 | * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.10-1 |
---|
| 165 | - initial build for Vine Linux |
---|
| 166 | |
---|