]> git.pld-linux.org Git - packages/poke.git/blob - poke.spec
BR: automake for %_aclocaldir
[packages/poke.git] / poke.spec
1 Summary:        An interactive, extensible editor for binary data
2 Summary(pl.UTF-8):      Interaktywny, rozszerzalny edytor do danych binarnych
3 Name:           poke
4 Version:        3.2
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications/Editors
8 Source0:        https://ftp.gnu.org/gnu/poke/%{name}-%{version}.tar.gz
9 # Source0-md5:  e1d84522e7a0adfa8c8afc2c2484e0a3
10 Patch0:         %{name}-info.patch
11 URL:            http://www.jemarch.net/poke
12 BuildRequires:  automake
13 BuildRequires:  bison >= 3.6
14 BuildRequires:  flex
15 BuildRequires:  gawk
16 BuildRequires:  gc-devel
17 BuildRequires:  gettext-tools >= 0.19.8
18 BuildRequires:  help2man
19 BuildRequires:  json-c-devel >= 0.11
20 BuildRequires:  libnbd-devel
21 BuildRequires:  libtextstyle-devel >= 0.20.5
22 BuildRequires:  ncurses-devel >= 5.0
23 BuildRequires:  pkgconfig
24 BuildRequires:  readline-devel
25 BuildRequires:  texinfo
26 Requires:       libtextstyle >= 0.20.5
27 Obsoletes:      poke-gui < 3
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 GNU poke is an interactive, extensible editor for binary data. Not
32 limited to editing basic entities such as bits and bytes, it provides
33 a full-fledged procedural, interactive programming language designed
34 to describe data structures and to operate on them.
35
36 %description -l pl.UTF-8
37 GNU poke to interaktywny, rozszerzalny edytor do danych binarnych. Nie
38 jest ograniczony do edycji podstawowych jednostek, takich jak bity czy
39 bajty - udostępnia dojrzały proceduralny, interaktywny język
40 programowania zaprojektowany do opisu struktur danych i operowania na
41 nich.
42
43 %package libs
44 Summary:        poke shared library
45 Summary(pl.UTF-8):      Biblioteka współdzielona poke
46 Group:          Libraries
47
48 %description libs
49 poke shared library.
50
51 %description libs -l pl.UTF-8
52 Biblioteka współdzielona poke.
53
54 %package devel
55 Summary:        Header file for libpoke library
56 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libpoke
57 Group:          Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59
60 %description devel
61 Header file for libpoke library.
62
63 %description devel -l pl.UTF-8
64 Plik nagłówkowy biblioteki libpoke.
65
66 %package static
67 Summary:        Static libpoke library
68 Summary(pl.UTF-8):      Statyczna biblioteka libpoke
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static libpoke library.
74
75 %description static -l pl.UTF-8
76 Statyczna biblioteka libpoke.
77
78 %package -n emacs-poke-mode
79 Summary:        Poke mode for Emacs
80 Summary(pl.UTF-8):      Tryb poke dla Emacsa
81 Group:          Applications/Editors
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       emacs
84
85 %description -n emacs-poke-mode
86 Poke mode for Emacs.
87
88 %description -n emacs-poke-mode -l pl.UTF-8
89 Tryb poke dla Emacsa.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94
95 %build
96 %configure
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpoke.la
106
107 # already in vim-rt
108 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post
114 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
115
116 %postun -p      /sbin/postshell
117 -/usr/sbin/fix-info-dir -c %{_infodir}
118
119 %post   libs -p /sbin/ldconfig
120 %postun libs -p /sbin/ldconfig
121
122 %files
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README
125 %attr(755,root,root) %{_bindir}/pk-bin2poke
126 %attr(755,root,root) %{_bindir}/pk-elfextractor
127 %attr(755,root,root) %{_bindir}/pk-strings
128 %attr(755,root,root) %{_bindir}/poke
129 %attr(755,root,root) %{_bindir}/poked
130 %{_datadir}/poke
131 %{_mandir}/man1/poke.1*
132 %{_mandir}/man1/poked.1*
133 %{_infodir}/poke.info*
134
135 %files libs
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libpoke.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libpoke.so.0
139
140 %files devel
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libpoke.so
143 %{_includedir}/libpoke.h
144 %{_pkgconfigdir}/poke.pc
145 %{_aclocaldir}/poke.m4
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libpoke.a
150
151 %files -n emacs-poke-mode
152 %defattr(644,root,root,755)
153 %{_datadir}/emacs/site-lisp/poke-map-mode.el
154 %{_datadir}/emacs/site-lisp/poke-ras-mode.el
This page took 0.069818 seconds and 3 git commands to generate.