##
##  openclipart.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 information
Name:         openclipart
Summary:      Collection of Reusable Clipart
URL:          http://www.openclipart.org/
Vendor:       The Open Clipart Library Project
Packager:     OpenPKG Project
Distribution: OpenPKG Community
Class:        EVAL
Group:        Graphics
License:      Creative Commons Public Domain Dedication
Version:      0.11
Release:      20080101

#   list of sources
Source0:      http://www.openclipart.org/downloads/0.11/openclipart-%{version}.tar.bz2

#   build information
BuildPreReq:  OpenPKG, openpkg >= 20160101
PreReq:       OpenPKG, openpkg >= 20160101

%description
    Openclipart is a collection of 100% license-free, royalty-free, and
    restriction-free art. Most of the art is in the Scalable Vector Graphic
    (SVG) format, which is used in a wide range of software applications,
    including Inkscape, Sodipodi, Adobe Illustrator, Batik, and more. The
    goal of the Open Clip Art Library is to provide the public with a huge
    collection of reusable art.

%track
    prog openclipart = {
        version   = %{version}
        url       = http://www.openclipart.org/downloads/0.11/
        regex     = openclipart-(__VER__)\.tar\.bz2
    }

%prep
    %setup -q

%build

%install
    rm -f LICENSE.txt LOG.txt PASSFAIL README.txt statistics.txt
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/share/openclipart
    mv * $RPM_BUILD_ROOT%{l_prefix}/share/openclipart
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean

