Welcome to mirror list, hosted at ThFree Co, Russian Federation.

myrulib-cr.spec « rpmbuild - github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b49f13c86c0dd85e596ebaaae2d4fd4f98b1d00a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#
# spec file for package myrulib-cr (Version 0.28)
#
# Copyright (c) 2009-2011 Denis Kandrashin, Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           myrulib-cr
Version:        0.28.15
Release:        0
License:        GPL-3.0
Summary:        E-Book Library Manager
URL:            http://myrulib.lintest.ru
Group:          Productivity/Other
Source0:        http://www.lintest.ru/pub/myrulib_%{version}.orig.tar.bz2
# Need to build debian packages.
Source90:       myrulib_%{version}-squeeze1.debian.tar.gz
Source91:       myrulib_%{version}-squeeze1.dsc
Source92:       myrulib_%{version}-squeeze1_source.changes
BuildRequires:  gcc-c++
BuildRequires:  libicu-devel
BuildRequires:  libxml2-devel
BuildRequires:  libjpeg-devel
Conflicts:      myrulib
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1140
BuildRequires:  sqlite3-devel
BuildRequires:  wxWidgets-devel
%else
BuildRequires:  wxGTK-devel >= 2.8.10
%endif
%endif

%if 0%{?mandriva_version}
BuildRequires:  libwxgtku2.8-devel >= 2.8.10
%endif

%if 0%{?fedora_version}
BuildRequires:  desktop-file-utils
BuildRequires:  wxGTK-devel >= 2.8.10
%if 0%{?fedora_version} >= 15
BuildRequires:  libsqlite3x-devel
%endif
%endif

%if 0%{?fedora_version}
BuildRequires:  bzip2-devel
%endif

%if 0%{?mandriva_version}
BuildRequires:  libbzip2-devel
%endif

%if 0%{?suse_version}
BuildRequires:  libbz2-devel
%endif

%description
MyRuLib is an application for organizing your own collection of e-books.

This package includes built-in CoolReader3 engine.



Authors:
--------
    Denis Kandrashin <mail@lintest.ru>

%prep
%setup -qn myrulib-%{version}
[ ! -x configure ] && %__chmod +x configure

%build
%configure \
            --with-icu \
            --with-reader \
            --without-strip

%if 0%{?fedora_version} >= 13 || 0%{?suse_version} >= 1210
%__make LDFLAGS="-Wl,--add-needed" %{?_smp_mflags}
%else
%__make %{?_smp_mflags}
%endif

%install
%if 0%{?fedora_version} || 0%{?mandriva_version}
%{?buildroot:%__rm -rf "%{buildroot}"}
%endif

%__make DESTDIR=%{buildroot} install
%find_lang myrulib

%if 0%{?suse_version}
%suse_update_desktop_file myrulib
%endif

%if 0%{?fedora_version}
desktop-file-validate %{buildroot}%{_datadir}/applications/myrulib.desktop
%endif

%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%if 0%{?mandriva_version}
%post
%update_menus

%postun
%clean_menus
%endif

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f myrulib.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README
%{_bindir}/myrulib
%{_datadir}/applications/myrulib.desktop
%{_datadir}/icons/hicolor/*/*/myrulib.png
%{_datadir}/pixmaps/myrulib.png

%changelog