]> git.pld-linux.org Git - SPECS.git/blob - wordpress-plugin-google-analytics.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / wordpress-plugin-google-analytics.spec
1 %define         plugin  google-analytics-for-wordpress
2 Summary:        Google Analytics plugin for WordPress
3 Name:           wordpress-plugin-google-analytics
4 Version:        1.2
5 Release:        1
6 License:        GPL
7 Group:          Applications/Publishing
8 URL:            http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
9 # Use DF or something. On each download it has new md5.
10 # Source0:      http://downloads.wordpress.org/plugin/%{plugin}.zip
11 Source0:        http://execve.pl/PLD/%{plugin}.zip
12 # Source0-md5:  9c9abd877fc326d489a80eed40537847
13 BuildRequires:  js
14 BuildRequires:  unzip
15 BuildRequires:  yuicompressor
16 Requires:       wordpress >= 2.8
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         wordpressdir    %{_datadir}/wordpress
21 %define         pluginssubdir   wp-content/plugins
22 %define         pluginsdir              %{wordpressdir}/%{pluginssubdir}
23 %define         plugindir               %{pluginsdir}/%{plugin}
24
25 %description
26 Google analytics plugin easily adds your Google Analytics tracking
27 code to all pages within your blog. That's it's main functionality, it
28 adds a few "extra's" though:
29   - Tagging outgoing links
30   - Tracking downloads
31   - Tracking AdSense clicks
32   - Tracking image search keywords
33   - Tracking original searches for Yahoo!'s Search Assistant
34   - Adding extra search engines
35   - Urchin
36
37 %prep
38 %setup -q -n %{plugin}
39
40 mkdir build
41
42 %build
43 yuicompressor yst_plugin_tools.css > build/yst_plugin_tools.css
44 yuicompressor custom_se_async.js > build/custom_se_async.js
45 js -C -f build/custom_se_async.js
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{plugindir}
50 cp -a *.php *.png $RPM_BUILD_ROOT%{plugindir}
51 cp -a images $RPM_BUILD_ROOT%{plugindir}
52 cp -a build/* $RPM_BUILD_ROOT%{plugindir}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc readme.txt
60 %{plugindir}
This page took 0.054482 seconds and 3 git commands to generate.