source: adblock2privoxy/adblock2privoxy/distribution/rpmbuild/SPECS/adblock2privoxy.spec @ a2fcf33

Last change on this file since a2fcf33 was a2fcf33, checked in by Alexey Zubritskiy <a.zubritskiy@…>, 4 years ago

Release 1.4.2

  • Property mode set to 100644
File size: 2.2 KB
Line 
1Name:    adblock2privoxy
2Version: 1.4.2
3Release: 1%{?dist}
4Summary: Convert adblock config files to privoxy format
5
6License: GPL-3
7URL:     https://projects.zubr.me/wiki/adblock2privoxy
8Source0: http://hackage.haskell.org/package/adblock2privoxy-1.4.2/adblock2privoxy-1.4.2.tar.gz
9Vendor:  Alexey Zubritskiy <adblock2privoxy@zubr.me>
10Group:   Web
11
12BuildRequires:  stack
13BuildRequires:  zlib-devel
14
15%description
16AdBlock Plus browser plugin has great block list files provided by big community,
17but it is client software and cannot work on a server as proxy.
18
19Privoxy proxy has good potential to block ads at server side,
20but it experiences acute shortage of updated block lists.
21
22This software converts adblock lists to privoxy config files format.
23
24Almost all adblock features are supported including
25
26* block/unblock requests (on privoxy)
27
28all syntax features are supported except for regex templates matching host name
29
30* hide/unhide page elements (via CSS)
31
32all syntax features are supported
33
34* all block request options except for outdated ones:
35
36Supported: script, image, stylesheet, object, xmlhttprequest, object-subrequest, subdocument,
37document, elemhide, other, popup, third-party, domain=..., match-case, donottrack
38
39Unsupported: collapse, background, xbl, ping and dtd
40
41%define debug_package %{nil}
42
43%prep
44%setup -q -T -D -n root
45stack setup
46stack install cabal-install
47
48
49%build
50stack build --only-dependencies
51stack exec --no-ghc-package-path runhaskell -- Setup.hs configure --user --package-db=clear --package-db=global --package-db="$(stack path --snapshot-pkg-db)" --package-db="$(stack path --local-pkg-db)" --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid'
52stack exec --no-ghc-package-path runhaskell -- Setup.hs build
53
54
55%install
56stack exec --no-ghc-package-path runhaskell -- Setup.hs copy --destdir=%{buildroot} -v
57cp -r man %{buildroot}%{_mandir}
58
59
60%files
61%doc %{_mandir}
62%doc LICENSE README.rst INSTALL.rst changelog
63%{_bindir}/%{name}
64%{_datadir}/%{name}-%{version}
65
66
67%changelog
68* Fri Feb 12 2016 Alexey Zubritskiy <adblock2privoxy@zubr.me> - 1.4.2
69- Rpm release for version 1.4.2 (generated from cabal file)
Note: See TracBrowser for help on using the repository browser.