spec

0 programs Taxonomy-only · no LLM program Evidence Report issue View issues
Aliases: —

Sources mentioning this language

2 sources · pl_id: pl/spec
PldbPygments

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.specpygmentsprimary6.1M files

Programs

No programs recorded for this language yet.

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
elementtree.spec · 2055 B · ext .spec · seen 613× in SWH
via fallback
swh:1:cnt:ea479f0e00adb5da4da0d562d3b413dc5fecf762;origin=https://github.com/aszeszo/jds;anchor=swh:1:rev:0b20cd6a3970f239c3ad0f8e57a682451a81463c;path=/base-specs/elementtree.spec
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
#
# spec file for package elementtree
#
# includes module(s): elementtree (Python module)
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner laca
#
%{?!pythonver:%define pythonver 2.6}

%define OSR 5166:1.2.6

Name:         elementtree
License:      BSD-like
Group:        Development/Languages/Python
Version:      1.2.6-20050316
Release:      1
Distribution: Java Desktop System
Vendor:       Secret Labs AB/effbot.org
Summary:      Elementtree Python module
Source:       http://effbot.org/downloads/elementtree-%{version}.tar.gz
URL:          http://effbot.org/zone/element-index.htm
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:       %{_defaultdocdir}/doc
Autoreqprov:  off
Prereq:       /sbin/ldconfig
Requires:      python >= %{pythonver}
BuildRequires: python >= %{pythonver}

%description
The Element type is a simple but flexible container object, designed to
store hierarchical data structures, such as simplified XML infosets,
in memory.  The element type can be described as a cross between a
Python list and a Python dictionary.

The ElementTree wrapper adds code to load XML files as trees of Element
objects, and save them back again.

%prep
%setup -q

%build

%install
python%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT

# move to vendor-packages
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_bindir}
%{_libdir}/python%{pythonver}/vendor-packages

%changelog
* Mon Nov 24 2008 - laca@sun.com
- use %{pythonver} macro to select which version of Python to build with
* Mon Nov 17 2007 - jedy.wang@sun.com
- Fix installation directory bug.
* Thu Jul 27 2006 - laca@sun.com
- create

Contribute — propose a file extension

Tell us where to find evidence about spec (mapped to pl/spec). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/spec/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Speakeasy Spec# →