]> git.pld-linux.org Git - packages/gom.git/blob - gom.spec
4ff86f5029cf606fe34b63521de6009d7745cdff
[packages/gom.git] / gom.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        GObject Data Mapper library
6 Summary(pl.UTF-8):      Biblioteka GObject Data Mapper
7 Name:           gom
8 Version:        0.3.1
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gom/0.3/%{name}-%{version}.tar.xz
13 # Source0-md5:  f18b16e193644e0dbafb198b60c6a7b4
14 URL:            https://github.com/GNOME/gom
15 BuildRequires:  autoconf >= 2.64
16 BuildRequires:  automake
17 BuildRequires:  gdk-pixbuf2-devel >= 2.0
18 BuildRequires:  gettext-devel
19 BuildRequires:  gettext-tools
20 BuildRequires:  glib2-devel >= 1:2.36
21 BuildRequires:  gnome-common
22 BuildRequires:  gobject-introspection-devel >= 1.30.0
23 BuildRequires:  gtk-doc >= 1.14
24 BuildRequires:  intltool >= 0.40.0
25 BuildRequires:  libtool >= 2:2.2
26 BuildRequires:  pkgconfig
27 BuildRequires:  sqlite3-devel >= 3.7
28 Requires:       glib2 >= 1:2.36
29 Requires:       sqlite3 >= 3.7
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 GOM (GObject Data Mapper) is an attempt to make a DataMapper for
34 GObject.
35
36 %description -l pl.UTF-8
37 GOM (GObject Data Mapper) to próba stworzenia DataMappera dla obieków
38 biblioteki GObject.
39
40 %package devel
41 Summary:        Header files for GOM library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GOM
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       glib2-devel >= 1:2.36
46
47 %description devel
48 This is the package containing the header files for GOM.
49
50 %description devel -l pl.UTF-8
51 Ten pakiet zawiera pliki nagłówkowe GOM.
52
53 %package static
54 Summary:        Static GOM library
55 Summary(pl.UTF-8):      Statyczna biblioteka GOM
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static GOM library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka GOM.
64
65 %package apidocs
66 Summary:        GOM library API documentation
67 Summary(pl.UTF-8):      Dokumentacja API biblioteki GOM
68 Group:          Documentation
69 Requires:       gtk-doc-common
70 %if "%{_rpmversion}" >= "5"
71 BuildArch:      noarch
72 %endif
73
74 %description apidocs
75 GOM library API documentation.
76
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki GOM.
79
80 %prep
81 %setup -q
82
83 %build
84 %{__gtkdocize}
85 %{__intltoolize}
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --disable-silent-rules \
93         %{!?with_static_libs:--disable-static} \
94         --with-html-dir=%{_gtkdocdir}
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 # obsoleted by pkg-config
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
105
106 %find_lang %{name}
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files -f %{name}.lang
115 %defattr(644,root,root,755)
116 %doc AUTHORS ChangeLog NEWS README TODO
117 %attr(755,root,root) %{_libdir}/libgom-1.0.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libgom-1.0.so.0
119 %{_libdir}/girepository-1.0/Gom-1.0.typelib
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libgom-1.0.so
124 %{_includedir}/gom-1.0
125 %{_pkgconfigdir}/gom-1.0.pc
126 %{_datadir}/gir-1.0/Gom-1.0.gir
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libgom-1.0.a
132 %endif
133
134 %files apidocs
135 %defattr(644,root,root,755)
136 %{_gtkdocdir}/gom
This page took 0.078168 seconds and 2 git commands to generate.