##
##  wordpress-plugins.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2025 OpenPKG Project <http://openpkg.org/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package versions
%define       V_wordpress                  4.5
%define       V_plugin_dbmanager           2.80
%define       V_plugin_pagenavi            2.93
%define       V_plugin_polls               2.74
%define       V_plugin_postviews           1.78
%define       V_plugin_print               2.58
%define       V_plugin_relativedate        1.51
%define       V_plugin_ban                 1.69
%define       V_plugin_bela                1.5.2
%define       V_plugin_stats               1.8.6
%define       V_plugin_peterantispam       3.2.2
%define       V_plugin_cumulus             1.23
%define       V_plugin_optimize            4.3.0
%define       V_plugin_dlmanager           3.3.28
%define       V_plugin_duplicatepost       4.5
%define       V_plugin_tablepress          3.2.3
%define       V_plugin_breadcrumbnavxt     7.4.1
%define       V_plugin_externallinks       6.8.1
%define       V_plugin_youtube             14.2.3
%define       V_plugin_youtubeadvanced     5.5
%define       V_plugin_woocommerce         10.2.2
%define       V_plugin_buddypress          14.4.0
%define       V_plugin_bbpress             2.6.14
%define       V_plugin_jetpack             15.1.1
%define       V_plugin_jetpackmarkdown     3.9.6
%define       V_plugin_googlesitemaps      4.1.21
%define       V_plugin_twitterwidget       1.3
%define       V_plugin_twitterconnect      1.6.2
%define       V_plugin_twitterstream       2.7.1
%define       V_plugin_twitterbox          2.2
%define       V_plugin_twittertools        3.2.1
%define       V_plugin_twittermentions     1.5.6
%define       V_plugin_posttypesorder      2.3.7
%define       V_plugin_wordpressimporter   0.9.4
%define       V_plugin_metaslider          3.102.0
%define       V_plugin_wpseo               26.1.1
%define       V_plugin_wpsso               21.7.0
%define       V_plugin_contactform7        6.1.2
%define       V_plugin_yarpp               5.30.11
%define       V_plugin_gdpr_core           2.1.1

#   package information
Name:         wordpress-plugins
Summary:      Wordpress Plugin Collection
URL:          http://wordpress.org/
Vendor:       R. Boren & M. Mullenweg et al.
Packager:     OpenPKG Project
Distribution: OpenPKG Community
Class:        PLUS
Group:        CMS
License:      GPL
Version:      %{V_wordpress}
Release:      20251016

#   list of sources
Source1:      http://downloads.wordpress.org/plugin/wp-dbmanager.%{V_plugin_dbmanager}.zip
Source2:      http://downloads.wordpress.org/plugin/wp-pagenavi.%{V_plugin_pagenavi}.zip
Source3:      http://downloads.wordpress.org/plugin/wp-polls.%{V_plugin_polls}.zip
Source4:      http://downloads.wordpress.org/plugin/wp-postviews.%{V_plugin_postviews}.zip
Source5:      http://downloads.wordpress.org/plugin/wp-print.%{V_plugin_print}.zip
Source6:      http://downloads.wordpress.org/plugin/wp-relativedate.%{V_plugin_relativedate}.zip
Source7:      http://downloads.wordpress.org/plugin/wp-ban.%{V_plugin_ban}.zip
Source8:      http://downloads.wordpress.org/plugin/better-extended-live-archive.%{V_plugin_bela}.zip
Source9:      http://downloads.wordpress.org/plugin/stats.%{V_plugin_stats}.zip
Source10:     http://downloads.wordpress.org/plugin/peters-custom-anti-spam-image.%{V_plugin_peterantispam}.zip
Source11:     http://downloads.wordpress.org/plugin/wp-cumulus.%{V_plugin_cumulus}.zip
Source12:     http://downloads.wordpress.org/plugin/wp-optimize.%{V_plugin_optimize}.zip
Source13:     http://downloads.wordpress.org/plugin/download-manager.%{V_plugin_dlmanager}.zip
Source14:     http://downloads.wordpress.org/plugin/duplicate-post.%{V_plugin_duplicatepost}.zip
Source15:     http://downloads.wordpress.org/plugin/tablepress.%{V_plugin_tablepress}.zip
Source16:     http://downloads.wordpress.org/plugin/breadcrumb-navxt.%{V_plugin_breadcrumbnavxt}.zip
Source17:     http://downloads.wordpress.org/plugin/sem-external-links.%{V_plugin_externallinks}.zip
Source18:     http://downloads.wordpress.org/plugin/youtube-embed-plus.%{V_plugin_youtube}.zip
Source19:     http://downloads.wordpress.org/plugin/embedplus-for-wordpress.%{V_plugin_youtubeadvanced}.zip
Source20:     http://downloads.wordpress.org/plugin/woocommerce.%{V_plugin_woocommerce}.zip
Source21:     http://downloads.wordpress.org/plugin/buddypress.%{V_plugin_buddypress}.zip
Source22:     http://downloads.wordpress.org/plugin/bbpress.%{V_plugin_bbpress}.zip
Source23:     http://downloads.wordpress.org/plugin/jetpack.%{V_plugin_jetpack}.zip
Source24:     http://downloads.wordpress.org/plugin/jetpack-markdown.%{V_plugin_jetpackmarkdown}.zip
Source25:     http://downloads.wordpress.org/plugin/google-sitemap-generator.%{V_plugin_googlesitemaps}.zip
Source26:     http://downloads.wordpress.org/plugin/rapid-twitter-widget.%{V_plugin_twitterwidget}.zip
Source27:     http://downloads.wordpress.org/plugin/nextend-twitter-connect.%{V_plugin_twitterconnect}.zip
Source28:     http://downloads.wordpress.org/plugin/twitter-stream.%{V_plugin_twitterstream}.zip
Source29:     http://downloads.wordpress.org/plugin/cardoza-twitter-box.%{V_plugin_twitterbox}.zip
Source30:     http://downloads.wordpress.org/plugin/twitter-tools.%{V_plugin_twittertools}.zip
Source31:     http://downloads.wordpress.org/plugin/twitter-mentions-as-comments.%{V_plugin_twittermentions}.zip
Source32:     http://downloads.wordpress.org/plugin/post-types-order.%{V_plugin_posttypesorder}.zip
Source33:     http://downloads.wordpress.org/plugin/wordpress-importer.%{V_plugin_wordpressimporter}.zip
Source34:     http://downloads.wordpress.org/plugin/ml-slider.%{V_plugin_metaslider}.zip
Source35:     http://downloads.wordpress.org/plugin/wordpress-seo.%{V_plugin_wpseo}.zip
Source36:     http://downloads.wordpress.org/plugin/wpsso.%{V_plugin_wpsso}.zip
Source37:     http://downloads.wordpress.org/plugin/contact-form-7.%{V_plugin_contactform7}.zip
Source38:     http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.%{V_plugin_yarpp}.zip
Source39:     http://downloads.wordpress.org/plugin/wp-gdpr-core.%{V_plugin_gdpr_core}.zip

#   build information
BuildPreReq:  OpenPKG, openpkg >= 20160101
PreReq:       OpenPKG, openpkg >= 20160101
PreReq:       wordpress
PreReq:       apache-php::with_dom = yes
PreReq:       apache-php::with_xml = yes
PreReq:       apache-php::with_simplexml = yes
PreReq:       apache-php::with_mbstring = yes
PreReq:       apache-php::with_zip = yes
PreReq:       apache-php::with_session = yes
PreReq:       apache-php::with_curl = yes
PreReq:       apache-php::with_ctype = yes
PreReq:       apache-php::with_mhash = yes

%description
    This is a collection of WordPress plugins.

%track
    prog wordpress-plugins:plugin-dbmanager = {
        version   = %{V_plugin_dbmanager}
        url       = http://wordpress.org/plugins/wp-dbmanager/
        regex     = wp-dbmanager\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-pagenavi = {
        version   = %{V_plugin_pagenavi}
        url       = http://wordpress.org/plugins/wp-pagenavi/
        regex     = wp-pagenavi\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-polls = {
        version   = %{V_plugin_polls}
        url       = http://wordpress.org/plugins/wp-polls/
        regex     = wp-polls\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-postviews = {
        version   = %{V_plugin_postviews}
        url       = http://wordpress.org/plugins/wp-postviews/
        regex     = wp-postviews\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-print = {
        version   = %{V_plugin_print}
        url       = http://wordpress.org/plugins/wp-print/
        regex     = wp-print\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-relativedate = {
        version   = %{V_plugin_relativedate}
        url       = http://wordpress.org/plugins/wp-relativedate/
        regex     = wp-relativedate\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-ban = {
        version   = %{V_plugin_ban}
        url       = http://wordpress.org/plugins/wp-ban/
        regex     = wp-ban\.(\d+\.\d+)\.zip
    }
    prog wordpress-plugins:plugin-bela = {
        version   = %{V_plugin_bela}
        url       = http://wordpress.org/plugins/better-extended-live-archive/
        regex     = better-extended-live-archive\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-stats = {
        version   = %{V_plugin_stats}
        url       = http://wordpress.org/plugins/stats/
        regex     = stats\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-peterantispam = {
        version   = %{V_plugin_peterantispam}
        url       = http://wordpress.org/plugins/peters-custom-anti-spam-image/
        regex     = peters-custom-anti-spam-image\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-cumulus = {
        version   = %{V_plugin_cumulus}
        url       = http://wordpress.org/extend/plugins/wp-cumulus/
        regex     = wp-cumulus\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-optimize = {
        version   = %{V_plugin_optimize}
        url       = http://wordpress.org/plugins/wp-optimize/
        regex     = wp-optimize\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-dlmanager = {
        version   = %{V_plugin_dlmanager}
        url       = http://wordpress.org/plugins/download-manager/
        regex     = download-manager\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-duplicatepost = {
        version   = %{V_plugin_duplicatepost}
        url       = http://wordpress.org/plugins/duplicate-post/
        regex     = duplicate-post\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-tablepress = {
        version   = %{V_plugin_tablepress}
        url       = http://wordpress.org/plugins/tablepress/
        regex     = tablepress\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-breadcrumbnavxt = {
        version   = %{V_plugin_breadcrumbnavxt}
        url       = http://wordpress.org/plugins/breadcrumb-navxt/
        regex     = breadcrumb-navxt\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-externallinks = {
        version   = %{V_plugin_externallinks}
        url       = http://wordpress.org/plugins/sem-external-links/
        regex     = sem-external-links\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-youtube = {
        version   = %{V_plugin_youtube}
        url       = http://wordpress.org/plugins/youtube-embed-plus/
        regex     = youtube-embed-plus\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-youtubeadvanced = {
        version   = %{V_plugin_youtubeadvanced}
        url       = http://wordpress.org/plugins/embedplus-for-wordpress/
        regex     = embedplus-for-wordpress\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-woocommerce = {
        version   = %{V_plugin_woocommerce}
        url       = http://wordpress.org/plugins/woocommerce/
        regex     = woocommerce\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-buddypress = {
        version   = %{V_plugin_buddypress}
        url       = http://wordpress.org/plugins/buddypress/
        regex     = buddypress\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-bbpress = {
        version   = %{V_plugin_bbpress}
        url       = http://wordpress.org/plugins/bbpress/
        regex     = bbpress\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-jetpack = {
        version   = %{V_plugin_jetpack}
        url       = http://wordpress.org/plugins/jetpack/
        regex     = jetpack\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-jetpackmarkdown = {
        version   = %{V_plugin_jetpackmarkdown}
        url       = http://wordpress.org/plugins/jetpack-markdown/
        regex     = jetpack-markdown\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-googlesitemaps = {
        version   = %{V_plugin_googlesitemaps}
        url       = http://wordpress.org/plugins/google-sitemap-generator/
        regex     = google-sitemap-generator\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twitterwidget = {
        version   = %{V_plugin_twitterwidget}
        url       = http://wordpress.org/plugins/rapid-twitter-widget/
        regex     = rapid-twitter-widget\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twitterconnect = {
        version   = %{V_plugin_twitterconnect}
        url       = http://wordpress.org/plugins/nextend-twitter-connect/
        regex     = nextend-twitter-connect\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twitterstream = {
        version   = %{V_plugin_twitterstream}
        url       = http://wordpress.org/plugins/twitter-stream/
        regex     = twitter-stream\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twitterbox = {
        version   = %{V_plugin_twitterbox}
        url       = http://wordpress.org/plugins/cardoza-twitter-box/
        regex     = cardoza-twitter-box\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twittertools = {
        version   = %{V_plugin_twittertools}
        url       = http://wordpress.org/plugins/twitter-tools/
        regex     = twitter-tools\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-twittermentions = {
        version   = %{V_plugin_twittermentions}
        url       = http://wordpress.org/plugins/twitter-mentions-as-comments/
        regex     = twitter-mentions-as-comments\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-posttypesorder = {
        version   = %{V_plugin_posttypesorder}
        url       = http://wordpress.org/plugins/post-types-order/
        regex     = post-types-order\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-wordpressimporter = {
        version   = %{V_plugin_wordpressimporter}
        url       = http://wordpress.org/plugins/wordpress-importer/
        regex     = wordpress-importer\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-metaslider = {
        version   = %{V_plugin_metaslider}
        url       = https://wordpress.org/plugins/ml-slider/
        regex     = ml-slider\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-wpseo = {
        version   = %{V_plugin_wpseo}
        url       = https://wordpress.org/plugins/wordpress-seo/
        regex     = wordpress-seo\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-wpsso = {
        version   = %{V_plugin_wpsso}
        url       = https://wordpress.org/plugins/wpsso/
        regex     = wpsso\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-contactform7 = {
        version   = %{V_plugin_contactform7}
        url       = https://wordpress.org/plugins/contact-form-7/
        regex     = contact-form-7\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-yarpp = {
        version   = %{V_plugin_yarpp}
        url       = http://wordpress.org/plugins/yet-another-related-posts-plugin/
        regex     = yet-another-related-posts-plugin\.(__VER__)\.zip
    }
    prog wordpress-plugins:plugin-gdpr-core = {
        version   = %{V_plugin_gdpr_core}
        url       = http://wordpress.org/plugins/wp-gdpr-core/
        regex     = wp-gdpr-core\.(__VER__)\.zip
    }

%prep
    %setup -q -T -c
    %setup -q -T -D -a 1
    %setup -q -T -D -a 2
    %setup -q -T -D -a 3
    %setup -q -T -D -a 4
    %setup -q -T -D -a 5
    %setup -q -T -D -a 6
    %setup -q -T -D -a 7
    %setup -q -T -D -a 8
    %setup -q -T -D -a 9
    %setup -q -T -D -a 10
    %setup -q -T -D -a 11
    %setup -q -T -D -a 12
    %setup -q -T -D -a 13
    %setup -q -T -D -a 14
    %setup -q -T -D -a 15
    %setup -q -T -D -a 16
    %setup -q -T -D -a 17
    %setup -q -T -D -a 18
    %setup -q -T -D -a 19
    %setup -q -T -D -a 20
    %setup -q -T -D -a 21
    %setup -q -T -D -a 22
    %setup -q -T -D -a 23
    %setup -q -T -D -a 24
    %setup -q -T -D -a 25
    %setup -q -T -D -a 26
    %setup -q -T -D -a 27
    %setup -q -T -D -a 28
    %setup -q -T -D -a 29
    %setup -q -T -D -a 30
    %setup -q -T -D -a 31
    %setup -q -T -D -a 32
    %setup -q -T -D -a 33
    %setup -q -T -D -a 34
    %setup -q -T -D -a 35
    %setup -q -T -D -a 36
    %setup -q -T -D -a 37
    %setup -q -T -D -a 38
    %setup -q -T -D -a 39

%build
    rm -f "download-manager/assets/file-type-icons/summer_download copy.png"
    rm -f "download-manager/assets/images/download-manager-16 copy.png"
    rm -f "ml-slider/admin/images/features/automatically cleans.png"
    rm -f "wp-optimize/images/features/automatically cleans.png"
    rm -f "wp-optimize/vendor/rosell-dk/image-mime-type-guesser/tests/images/jpg-with space.jpg"
    rm -f "wp-optimize/vendor/rosell-dk/image-mime-type-sniffer/tests/images/jpg-with space.jpg"
    rm -f "wp-optimize/vendor/rosell-dk/webp-convert/tests/images/with space.jpg"

%install
    #   install plugins
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-dbmanager \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-pagenavi \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-polls \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-postviews \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-print \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-relativedate \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-ban \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/better-extended-live-archive \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/peters-custom-anti-spam-image \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-cumulus \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-optimize \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/download-manager \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/duplicate-post \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/tablepress \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/breadcrumb-navxt \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/external-links \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/youtube \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/youtubeadvanced \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/woocommerce \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/buddypress \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/bbpress \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/jetpack \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/jetpack-markdown \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/google-sitemap-generator \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-widget \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-connect \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-stream \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-box \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-tools \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-mentions \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/post-types-order \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wordpress-importer \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ml-slider \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wordpress-seo \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wpsso \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/contact-form-7 \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/yet-another-related-posts-plugin \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-gdpr-core
    cp -rp wp-dbmanager/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-dbmanager/
    cp -rp wp-pagenavi/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-pagenavi/
    cp -rp wp-polls/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-polls/
    cp -rp wp-postviews/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-postviews/
    cp -rp wp-print/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-print/
    cp -rp wp-relativedate/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-relativedate/
    cp -rp wp-ban/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-ban/
    cp -rp better-extended-live-archive/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/better-extended-live-archive/
    cp -rp stats/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/stats/
    cp -rp peters-custom-anti-spam-image/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/peters-custom-anti-spam-image/
    cp -rp wp-cumulus/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-cumulus/
    cp -rp wp-optimize/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-optimize/
    cp -rp download-manager/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/download-manager/
    cp -rp duplicate-post/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/duplicate-post/
    cp -rp tablepress/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/tablepress/
    cp -rp breadcrumb-navxt/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/breadcrumb-navxt/
    cp -rp sem-external-links/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/external-links/
    cp -rp youtube-embed-plus/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/youtube/
    cp -rp embedplus-for-wordpress/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/youtubeadvanced/
    cp -rp woocommerce/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/woocommerce/
    cp -rp buddypress/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/buddypress/
    cp -rp bbpress/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/bbpress/
    cp -rp jetpack/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/jetpack/
    cp -rp jetpack-markdown/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/jetpack-markdown/
    cp -rp google-sitemap-generator/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/google-sitemap-generator/
    cp -rp rapid-twitter-widget/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-widget/
    cp -rp nextend-twitter-connect/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-connect/
    cp -rp twitter-stream/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-stream/
    cp -rp cardoza-twitter-box/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-box/
    cp -rp twitter-tools/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-tools/
    cp -rp twitter-mentions-as-comments/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/twitter-mentions/
    cp -rp post-types-order/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/post-types-order/
    cp -rp wordpress-importer/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wordpress-importer/
    cp -rp ml-slider/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/ml-slider/
    cp -rp wordpress-seo/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wordpress-seo/
    cp -rp wpsso/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wpsso/
    cp -rp contact-form-7/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/contact-form-7/
    cp -rp yet-another-related-posts-plugin/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/yet-another-related-posts-plugin/
    cp -rp wp-gdpr-core/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/wordpress/wp-content/plugins/wp-gdpr-core/

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%attr(-,%{l_rusr},%{l_ngrp}) %{l_prefix}/libexec/wordpress/wp-content/plugins/better-extended-live-archive/cache'

%files -f files

%clean

