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